So this sounds like some men and women were earning less than others. If pay has a large variance (e.g. because some people are better at selling themselves), and the workforce is overwhelming male, you would expect exactly this. Even if women on average were to earn less, the majority of those being underpaid would be men.