if you look in the verse of Quran we will read that the mother give birth to a daughter. The mother clearly said.. "I have named her Mary" . Why did the mother choose that name? So if we look at hadith Mughira b. Shu'ba . Then we know the mother give names after the names of Apostles and pious person. But still..
what trigger her to give name of Mary? So if we reread the verse in Quran, we will see the phrase wife of Imran. So we know that father has the same name with father of Moses that cause the mother to pick same pious name for her daughter following the name of Amran's daughter.