There have been lots of posts explaining this further on this site should you choose to look here: . Basically it isn't the vowel that causes an to be used it is the sound of a vowel. If the noun starts with a vowel sound use an, if not a.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.