It is well documented that men drop out at higher rates and are in general more prone to failing. Having a few extra "zeros" in the GPA rankings would skew the mean down for males.
It's tempting to say that "Girls are better than boys in academic things", but if you look at the performance of a cohort of graduates, I'd expect you'd see we're all about equal.
After graduation, there's a couple other well documented attrition filters for women, unfortunately.
There was this old essay about it, which is now quite old and probably cancelled, called "Is there anything good about men" that discussed various life tradeoffs that affected the genders differently.