I think that's a factor, but not the complete story - STEM disciplines are notoriously competitive, to the point of seething rage and hatred (the reason why is obvious - people in STEM don't generally have anything else going for them, and derive their personal esteem from being great at STEM - anybody who challenges that is an enemy of the highest calibre). I know when me and my friends competed, we took absolutely no prisoners and were ruthless, even if we stayed friends afterwards.
Also, guys like objects and gadgets and tools. They like numbers because that quantifies superiority and inferiority (instead of asking which one to get, you immediately get the biggest or fastest one and problem solved), and they like to have a solution for every problem that they might face, preferably one that fits in a pocket (another reason why they like pockets, to stuff tools in them), because they are looked to to be able to solve a problem, because they are the leaders in modern society and since time immemorial (or at least have the social responsibility of being the problem solvers for a while now).
Oh, and not to get too real on you folks, but men have larger brains too through the virtue of being bigger and taller than women, and are less emotional than women, making them perfect for the cold logic of technology.