The n was gradually lost before consonants in almost all dialects by the 15th century.. From middle english a, an, from old english ān (“one;
The song helps with letter recognition and the sound of the letter a.. Before a consonant sound represented by a vowel letter a is usual.