It wasn't 95% remaining men.
In my degree program/year, we had 1500ish cosc students in the program of whom only 450 were expected to graduate and get degrees. This was intentional- if we had too many graduates the school's accreditation would be rescinded.
So among students overall, 30% graduated, 70% failed, left the program, quit school, etc. I had good friends who failed and disappeared. And I knew a lot of folks who opted out for easier degrees.
70% of students left the program on average. 95% of females left the program on average. So over 65% of the males didn't make it either.
We had three weedout courses. Database had an average of 20 hours a week of homework with some weeks of 40 hours of homework. I went 40 hours without sleep before walking into the mid term. This was on top of homework for other classes.
Natural languages weeded out a lot of students but I actually made a difference from there. I figured out the "magical" phrase to ask the professor that changed his class from a 70% failure rate to a 30% failure rate. (It was "Could you give me a 'trivial' example of this?). He wanted us to succeed but he was not going low enough for us to grasp the first rung of the ladder.
And of course microlanguages and assembly got the rest. Similarly very high homework requirements. I scammed that course because I already knew assembly language- having picked it up when I was 16 on my own.
You don't get through something like that unless you love the field.