This massive gender imbalance initially made me reject the tech industry and spend my first few years after graduation in a completely different industry.
It was painful to see the comp sci program start out around 15% female in first year and drop off to 2-5% by the end of year 4.
It wasnt always so, back in the 70s at the same school the proportion was much closer to 50/50.