"Women aren't interested in programming, so none of them go into programming professionally.
Why don't women go into programming professionally? Because they aren't interested."
Separate out whether women are interested from whether women are being forced out for other reasons (harassment, gender imbalance in the field, etc).