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.