I undestand they were not segregated - that's the issue.Yet the women and men were segregated? Right, please?
Else the women could be praying separately, leading with a women Imam.
The women were not enjoined to pray in the mosque, they could pray at homes. Men are enjoined to pray in the mosque in congregation.
Regards