A lot of people don't know this.
In the 1100's the church created a law called "cannon law". This set the legal age of marriage for girls to 12 years old. Before cannon law was introduced, girls would marry at 10 years old. And it was only very recently this law was changed:
Source: https://www.canonlaw.info/a_tooyoung.htmUntil 1917, canon law had basically considered anyone above the age of 12 capable of marriage.
It was perfectly acceptable, and was not seen as a bad thing. Of course, today it's bad. We have different values because this has been abused by people with bad intentions. And rightly so.
But it's interesting that this part of history is never discussed or brought up.