Perhaps you are unaware of the legal concept of "disparate impact": https://www.britannica.com/topic/disparate-impact
disparate impact, judicial theory developed in the United States that allows challenges to employment or educational practices that are nondiscriminatory on their face but have a disproportionately negative effect on members of legally protected groups.
For example, if a company's policy is "No employee is allowed to pump breast milk anywhere on premises, even behind closed doors, regardless of gender," it disproportionately impacts women even if men are also banned from the same activity.