I think on some level it is right. I suspect girls are predisposed to making a better cost-benefit decision on whether or not to get into it. Except for the very lucky (which I thankfully consider myself), much of the programming world is dull: connect 1 peice of complicated, poorly written code to another peice of complicated, poorly written code. There's just enough time budgeted to make it "work" before moving on and doing the same thing over again. Invariably any time not spent doing that is spent in long (often pointless) meetings discussing the changes. Assuming you are actually good at what you do, you will have a flock of managers and coworkers trying coopt you to do their work for them.
If you win the lottery and are lucky enough to end up working on something you love, the lifestyle still takes a toll. The constant computer time is tough on your body, even if you exercise regualrly and mix sitting/standing. Unless you are gifted, you'll be spending a lot of free time just trying to keep up with the folks who are (and technology changes in general). It's pretty tough to balance work and home life if you have a young family. Later on in life, there's a very real threat that if you haven't moved up into management by the time you are in your 40s you'll be seen as a liability vs younger and cheaper labor.
It's not all bad (pay is good, chance at interesting work, probably won't get skin cancer, etc). I suspect the reality though is that women have a pretty good idea of what the tech world entails (beyond the misogyny) and simply decide it's not worth it.