To this end, having stereotypes and games like girls playing with dolls while boys build things and play more combative games instills different behaviours in children, which fundamentally change how they relate to others. You can still see it reflected in stupid things like "Be a man", which is essentially a shaming shorthand for "assert independence and dominance, thus showing less vulnerability to those able to dominate you in a competitive social hierarchy".
This obviously also reflects on the way people relate to obedience; independence being a supposed virtue, obedience can be intepreted from this masculine framework as an attempt by someone else to dominate. Emphasising co-operation and connection, though, means a greater willingness to engage. These are obviously only broad trends, but they are noticeable.
Sorry to be anal about it, but (assuming you're from a Western country) the society is anything but patriarchal.
"Patriarchy is a social system in which males [...] occupy roles of political leadership, moral authority and control of property, and where fathers hold authority over women and children"
You're male.
It seems like according to your premise, if we could just get over our prejudices, we could drastically streamline military training by simply selecting docile, compliant females instead of petulant, inquisitive males.
I did terribly in school, by the way.
That said, one cannot fairly compare the two. The military has an express purpose of national security, and is well suited to obedience and susceptibility. Public schools, on the other hand, are little more than industrialized daycare at best, and harmful propaganda centers at worst. That and joining the military comes with benefits that extend beyond the artificial void inside a public school... it's supposed to, anyway.
(I'm reading more into your comment than you actually said, I know; maybe you're just making a tangential point).
And young women, too.
> I think boys can largely see this is a pointless charade and would rather do something of actual value
I don't think there's a lot of evidence in the behavior of school age boys vs. girls, either in school or in any other context, to support this.
OTOH, I do think your explanation may reflect (though in a distorted way) something that may be a real issue that may explain part of the difference: I suspect that boys have a lower tolerance for activities with a delayed payoff, where conventional school curriculum mostly has a very delayed payoff.
Even as a nearly 30 something I don't like being told what to do. Ask, don't tell.
I know I could see this was pointless charade and would rather do something of actual value, whereas most of what you do in school is pointless busy work with no real educational value at all.