When I was a self employed personal trainer at Fitness First we had loads of complaints from our male members because at certain times of day the smaller gym was women only.
Then men used to complain like mad.
However there were legitimate reasons.
For religious reasons some women can’t exercise in front of men. Although I’ve never read the Torah I believe that in some denominations of Judaism they can’t exercise in front of men which I respect.