Another reason for less women might be difficulties in going outside, I understand that in some regions controlled by Islamists it's expected (required?) that women are always accompanied by an adult male relative if they go out.
This constraint alone seems like it would almost always lead to Mosques having fewer females present; but I haven't properly modelled it.
In the early days of Islam, women were fairly independent. For example, the Prophet’s first wife was a prominent merchant and much wealthier than he was. One of his other wives, Aisha, was an extremely respected narrator of Hadith, even after his death.
Things changed slightly over time as: (1) local cultures mixed with the religion and (2) different branches of thought arose, each with their own interpretations and understanding of the religion. This, combined with the dominance of patriarchal societies in the region, led to women having fewer chances to participate in the workforce.
Continuing on from this she is termed the 'Mother of the Believers' and was a military commander during The First Fitnah.
Were you responding to a different comment, I made no mention of, nor does my comment relate to, segregation.