Minor Attraction in Biblical times:
The oldest source on Mary's age at the time of marriage is probably the Protoevangelium of James. It gives her age as 12.
The Protoevangelium is usually dated to the second century, as are many of the Christian texts that became part of the canonical Bible. However, while some early Christians did consider the text to be canonical, it was eventually classed apocryphal by the later church. (However, it should be noted that premodern Christians did not consider apocryphal texts to be without evidential weight. Rather they considered them to be of limited weight).
The relevant passage in the Protoevangelium is:
https://www.newadvent.org/fathers/0847.htm
"And her parents went down marvelling, and praising the Lord God, because the child had not turned back. And Mary was in the temple of the Lord as if she were a dove that dwelt there, and she received food from the hand of an angel. And when she was twelve years old there was held a council of the priests, saying: "Behold, Mary has reached the age of twelve years in the temple of the Lord. What then shall we do with her, lest perchance she defile the sanctuary of the Lord? "And they said to the high priest: You stand by the altar of the Lord; go in, and pray concerning her; and whatever the Lord shall manifest unto you, that also will we do. And the high priest went in, taking the robe with the twelve bells into the holy of holies; and he prayed concerning her. And behold an angel of the Lord stood by him, saying unto him: Zacharias, Zacharias, go out and assemble the widowers of the people, and let them bring each his rod; and to whomsoever the Lord shall show a sign, his wife shall she be. And the heralds went out through all the circuit of Judæa, and the trumpet of the Lord sounded, and all ran."
This would more or less coincide with the average age of marriage in pre-modern Levant, which was 12-14 during Biblical times:
https://www.biblicalarchaeology.org/dai ... the-bible/
(3) Marriageable Age. At the time of their marriage, Mary was probably a teenager—and Joseph not much older. According to rabbinic texts, parents were encouraged to engage their girls around age 12, about the time of puberty, and marry them a year later. Fiensy supports this claim with archaeological evidence; first-century inscriptions that list women’s age-at-marriage generally indicate ages 12–17, with the majority at age 13.
Armar Trooper said that girls often used to get married early we might say premature, while men married late. In context, he says that in general Jews marry prematurely to achieve maximum fertility which is the rule & older couples (40, 50, 70yr) with older age marriages are also possible based on romance by choice to marry. Choice isn't a rule. I attached an image related to it for further context.
Source :Amram Tropper, “Children and Childhood in Light of the Demographics of the Jewish Family in Late Antiquity,”