I wonder, and this me genuinely wondering without an assumed answer, if some of the issues we're seeing with gender inequality in 'traditionally male dominated' lines of study and work might be due to the type of people drawn to those fields.
I'm not going all men's rights or saying anything is acceptable but if you took a (painfully?) stereotypical set of physicists, technologists, etc. they would probably be male, on the autism spectrum/socially awkward in general, and likely have spent the majority of their time around the same types of people (smart, socially awkward men/boys). Could part of it be from social cues they may not have learned along the way since they likely spent a good portion of their time out of the 'normal' stream of socialization?
Another thought, and anecdotally, I played multiple sports in high school and aspired to play college football. When I walked into a CS or advanced physics class in high school and college I was the something is not like the rest; sauntering in at 6'4", in a cutoff t-shirt and sweats having just come from practice or lifting weights. There were multiple times where when I screwed up I was called a dumb jock, or something like that. If I was instead a woman, might they have just called me a dumb girl? Now they are being misogynistic for sure, but couldn't you attribute it to the fact that they pick out the difference between you and them and attack on that? Isn't that what most groups do in a "you don't belong, you're not our kind" kind of mentality? I shook most of it off pretty casually because I could look into myself and a) be sure I was just as good, if not better than the majority of 'them', and b) I knew I could physically destroy them and it made 17-22 year old me smile inside.
As a Type A, incredibly outgoing and social individual, I've been reminded many times of how annoying I get to a lot of the people who studied with me and work with me because they are very typically not. Growing up with one foot in nerd life and another in jock life (taking the non-pejorative easy to describe route with nerd and jock) it was very clear the group social difference between both sides of my friends. I, frankly, had a much easier time fitting in with the sports oriented/popular crowd and felt almost, hesitant, maybe, in larger groups in my CS/Physics studies. It was a weird, unnerving feeling for someone who spent most of his life dropping into social situations and just rolling with it. It was almost as if I was communicating at a _just_ different enough baud rate that we could work together, but it was taxing for a long time.
I could imagine if I was a woman who maybe couldn't draw on their physical dominance to provide a sense of safety, how much more stressful those years would have been.