During the Middle English period, like other short vowels, the /a/ was lengthened in open syllables.
For example, the word name originally had two syllables, the first being open, so the /a/ was lengthened; later, the final vowel was dropped, leaving a closed syllable with a long vowel.