Earlier quoted context omitted.
More than that, medicine is more portable. At a typical large company, the ingress point into the company is at an entry-level position. Many women want to interrupt employment when they have children, which isn't practical for a IT person or programmer at a bank or government agency. My mother, to use a fairly typical example, is a nurse. She took 5-6 years off at various times when my siblings were born or when day…
More to the point, medicine is portable because people need doctors everywhere. You can practice medicine in New York just as well as you can practice medicine in Ouray. Further, barring highly specialized fields (e.g. pediatric oncology, transplantation surgery), the work you'll be doing will be more or less similar and available wherever you go. Software just doesn't offer that. Most of the places I've seen that ad…
So the issue is not with the profession per se - that leaves the employers. And there, you have a point for large swaths of the industry. But it seems the world of web/backend development is a bit more flexible there, no?