There could be self-selection due to preferences, which explains why almost all nurses are women and why almost all garbage truck drivers are men. There could also be selection based on differences in behavior or competence: almost all prisoners are men because almost all of the most aggressive people in society are men. The justice system isn't sexist, the lopsided gender balance is a consequence of group-level differences in criminality due to genes and culture.
In the case of societal leadership, sexism has clearly played a role in shaping representation historically, but that conclusion definitely doesn't follow from the mere observation of unequal distribution, it follows from an understanding of the details of why that distribution is lopsided.
To be clear, it's not bad for an all-men or all-women parliament to exist in a high functioning democracy. It's statistically possible, just highly unlikely. If we look at a large timescale and there's a lopsided distribution the majority of time, or highly lopsided spikes for short periods of time, that sugggests that there are confounding factors that don't align with democratic idealism.
You may just get a large group of competent women who are very popular to all. I can't see why it would be better for as you say - democratic idealism - to then decry that some incompetent men candidates didn't get the gig.
The elephant in the room with regards to leadership is all the stuff related to perception of competence in patriarchal societies, boys clubs (recall that in many places, wealth is somewhat of a prerequisite for campaigning successfully), etc.
If men and women were identical, then you should expect matriarchies to account for half of all societies. But you don’t which means a difference must exist, and clearly a meaningful one. The notion that there is some adversarial misogyny behind patriarchy is preposterous. God bless the patriarchy!
What if all the women decide a particular set of men best represent their values and priorities?
That would be a bad thing?