@Alypius FYI:
It seems that Jewish girls in Mary's time would have known the requirements of the law, but might not have been versed in the composition of Psalms. Again, my answer basically ignores the potential (probability?) that the Magnificat was divinely inspired.