That’s only true in the public Zeitgeist, there is a huge preference among portions of the workforce for male leadership stated or unstated. This is not a good thing. I literally worked with a guy who was about to quit because a woman would boss him around and she was about 10,000 times as qualified as he was
then again, how good a manager would she have made if she was bossing around colleagues to the point of them quitting?
Management is not just about qualification, it's also about the human aspect.
I have seen enough toxic femineity at work to say it is actually a thing, on par with toxic masculinity.