I'll repeat what tech companies love to say about hiring underrepresented classes: it's a pipeline problem. Because of a combination of social reasons, maturity, curricula, and pedagogy, men don't perform as well as women academically. Look at the graph on the top of this[1]. Men have lower GPAs in every subject. It's not surprising that leads to fewer going to college and fewer graduating.
1: https://www.act.org/content/dam/act/unsecured/documents/Info...