An often overlooked aspect of statistics of human traits is that even a small difference in the variance of a normal(ish) distribution results in a large difference in the extreme quantiles. As men tend to have more variance in everything due to having only one X chromosome, it's expected that the most extreme individuals in everything are more male than female. In addition, when some aspect of the society is organized like a winner-takes-all game, it is naturally the most extreme individuals, who are mostly male, who end up at the top.
As every function of the society scales more and more, more things become winner-takes-all games and end up being male dominated. However, it is hardly useful to frame it as some kind of sex warfare since, unlike many feminists claim, this doesn't help most men at all since they never had any shot at the top anyway. It's more like we have three "sex groups": all women, normal men and extreme outlier men. The only way to prevent the extreme outlier men from dominating everything is to prevent winner-takes-all games.