Programming isn't the only job that pays well and rewards the highly intelligent. Women probably aren't going into software dev because they're socially acclimated enough to realize what a bad deal it is. Software skills change like the wind, and there is always a fresh crop.
Yesterday it was rails, today it's node. People who can hack people like programmers hack computers have far more valuable skills. Social skills don't become obsolete, a rolodex is far more reusable than most pieces of code.