Marriage was made to protect women in the past and it never "beneficied" men in general :
Women in the past never worked at a job like right now, can't earn any money, no rights, different wars, health issues, healthcare mediocre quality etc.
So mariage protected them from ending up as single moms without solutions to earn money and bring food/home unless prostitution, if you die she get the money/house to continue raising kids, you're legally obligated to take care of your family by working and bringing food and a home for them etc
At some point people who thinks marriage was beneficial only for men tend to forgot that most men in any history period & era has wished to fuck as many women as they would want without being tied to them. Like, who cares if she end up pregnant, no papers signed, no problems
It was the best solution atm (and it wasn't perfect) to improves offsprings quality of life and perpetuate human race, without ending up with inbreeding cases (like Chad who fucked the 60 girls of the village, for example)
Birth control wasn't here and no justice or healthcare centers like right now, so one small error like fucking the wrong guy and she will ends up in a bad situation with potential problems. That's why virginity and marriage was the core of relationships.
Nowadays marriage is mistaken by just a wedding ; getting expensive ring, dress, food, party to impress instagram followers and jealous female friends. Nothing more. Completely useless nowadays, people buy houses, work and get babies outside of marriage.
So men sign that prenup and protect all you've worked hard for, don't let a pair of boobs destroying your life. 50% of marriages end up in divorce