It’s a variation on the golden rule (“Them that has gold, rules”). basically, them that has muscles, rules.
Starting even in the hunter-gatherer days, competing for resources with the gang over the hill meant the tribe had to fight. Pregnant women and women carrying infants were not the ideal warriors, so men best filled this role. Of course, even internally, men fought each other for the women (been in any good bars near closing?). This is not much different than many other animals - the males fight for the “favour” of the females. Thus males are selected for fighting ability, women less so.
(And the institution of marriage, whatever form, can be seen as society saying “OK, this guy owns this woman, so everyone else, hands off - we don’t want any more fights and injuries.”)
In fact, I read a study once that in polygamous societies, where males are more dominant, the women tend to be physically proportionally smaller than the men; while in long-time monogamous societies, the size of each sex is proportionately closer to equal. The man of the house gets his full share of the food and 1 or more women and children divide up what’s left.
Whether it’s race or sex or religion, being in a position of dominance gives people trange ideas that they are dominant due to superiority, not because of numbers, strength, viciousness, or accident. For example, IIRC it was Aristotle who said men had more teeth than women, but could not be bothered to ask the wifey to open wide so he could do a count. You need only look at the racial crap like that spewed by people who assumed blacks were subhuman and inferior to whites; or religious intolerance. With assumed superiority comes ideas of superiority.
The whole concept of what it means to be a man also plays into this. Men are defined by what they can accomplish in 10 minutes or less, while women have 9 months plus to contemplate their role; there’s no such thing as performance anxiety or impotence or being cuckolded for women.
If you accept the concept that we subconsciously are drive to promulgate and protect our genes, then much of the actions of men in some societies make sense - finding as many women as possible, locking them away from other men, preventing them from “roaming”, even trying to kill other competeing men and their “Y” chromosomes…
A an assertive woman may not let the man have his way with her whenever he wants; may even choose some other man. Therefore, assertive, independent women are “bad” from the male’s perspective.
There’s the stories that a lot of primitive invasions culminated in the invading force killing all the males (including children) and then taking the womenfolk as additional mates. As simple an example of “eliminate competing Y chromosomes” as you’ll find anywhere.