If you’ve ever talked to women in tech, they’ll tell you how badly they were treated by male students and sometimes even by teachers, trying to get them to wash out.
I'm from Germany and after graduating from highschool, if you have sufficent grades you can choose to take another 3 years of school for a better diploma. These extra 3 years are often specialised for some topics, for example IT.
Now, there are no IT lessons in regular highschool. We did learn how to type, but that was about it. So there is really no way that women could have "pushed out" of IT in anyway, because it was never a subject.
Yet, of the roughly 120 studends that signed up for IT school, there were about 7 women.
Seems like there must be some other reason, because they definitly weren't pushed out by other students or teachers.