We use "an hour" because "hour" begins with a vowel sound ("ow-er"). The choice of "a" or "an" depends on pronunciation, not just spelling.