One of the most common reasons floated for so few women in IT/software jobs amounts to the same thing: women don’t want to work in the “bro culture” or deal with “toxic masculinity.” I don’t have any evidence for that, just my own career experience watching women leave (or never enter) the software field since I started in the late ‘70s. When I started programming women made up 25% or more of my co-workers. Today that percentage seems close to zero.
I suppose it works both ways.