Ok, so they are leaving. It's their decision.
Many people get into programming for the money only to discover it's actually harder than it seems. Most people don't realize you have to keep learning just to stay relevant in IT. How many professions require that?
I'm yet to see any evidence that women leave IT because they are harassed on a mass scale.