When a society does not pay women a living wage, or allow them to work at all, then women have only two choices, get parried or remain unmarried and living with her parents. The Catholic Church also offered the possibility of becoming a nun (by means of a ceremony in which they married Jesus), but there are no Muslim nuns.
When a society allows most women to work, then it becomes more prosperous, and then women become more independent. They no longer have to put up with husbands who beat them, or being segregated from the rest of society.