Do you have any citations for that? My impression is that nursing and teaching were considered women's work before they even existed as distinct professions. Nursing was originally done by women's religious orders, and was founded in its modern form by a woman, Florence Nightingale. And teaching was open to women in America since at least colonial times.
Better examples might be law and medicine, high-status professions that were once all-male but now are considerably more gender-balanced than software development. I don't know the reason for the disparity, but I doubt it's because software engineers on average act more fratty than lawyers.