By highschool, you have as large of a gap in boys and girls enrolling in computer science AP classes and extracurriculars as it's going to get by adulthood. Additionally, in wealthier countries, with more gender equality, less women choose computer science degrees.
So no, it's not the fault of the industry. Man and women just have different interests for complicated reasons. You can verify it with your own two eyes - in any big corporation, (and in many smaller companies), there is a big drive to hire women, there are events exclusively for women, career groups, opportunities exclusively for women.
I wonder if, in a parallel universe, HR departments of schools are beating themselves up for not hiring enough men, college admissions departments are asking themselves if they're failing the boys of the current generation, or hospitals thinking if they should have a more inclusive culture in nursing.
Somehow I doubt it.
I'm reminded of Lincoln's "I can make a new general in three minutes": if you need to staff a hierarchy, and you have a bunch of young men to do it with (+), you take the ones that look like they have initiative and stick titles on them and let the results shake out.
I was also trying to remember which famous classical composer died young, and the answer turns out to be "most of them": https://www.classical-music.com/composers/composers-who-died...
(+) the industry has always been pretty terrible at hiring and promoting women, and the way we handle recognition is part of that