What those two have in common are shitty working conditions. Yes, coding is done sitting in climate controlled offices. But it is mostly shit: shit doc, shit managers, shit clients, shit hours, shit tools. Only dumbfucks who don't mind shit conditions for more money would do it.
I'm sure if you checked the gender balance in government coding jobs and in gamedev you'd discover how it is more about working conditions than sexism.
Well, it's more physically demanding, isn't it?
But your point is that there are areas where society screws men over, and that nobody cares, right?
So... Why do you raise that point when the topic is how society screws women over?
Wouldn't it be better to improve society? In both places?
There's a big "but": SW dev requires a certain mentality to be able to stick at it for a long time, without becoming bored out of your mind or going crazy about all the inefficiencies, dysfunction and utter meaninglessness of it all.
Most clerical jobs don't have a lot of surprises hidden in the middle of some undocumented feature. And things are not improving with the multiplication of dependence on SaaS and build and deploy mechanism.
Not anymore, a lot of it is automated now so if you can drive and operate some buttons (and a broom if need be) you should be able to get a job in that area.
1) There are multiple fields available for new entrants to the labor force to pick from.
2) Some of these have better working conditions than others.
3) Women tend to be a bit more mature than men at the age at which one picks a career and are more likely to consider working conditions when doing so.
This has nothing to do with whether people are caring that someone is screwing someone else or not per se. What it does mean is that improving working conditions in some fields would likely draw more women in, if the above theory is correct. I have no opinion on the theory itself.