I've heard a number of other theories that also sound plausible, and they sound like problems that should be addressed.
Examples of other theories (not exhaustive): alienated by brogrammer/strutting/aggressive culture many places, discriminated against in hiring many places, harassed by some individuals, not trying due to belief that they'll be discriminated against, not trying due to belief that they'll face harassment or other hostile culture.