Because they produce less economic value.
You can argue that's unfair, but forcing employers to pay less productive employees more is not the answer. There are other society-wide changes you could implement, such as alimony, which is mostly awarded to women, because they miss out on career opportunities taking care of the children. Personally, I'm strongly against alimony (it seems sexist, unfair and the wrong kind of incentive), but I would support initiatives such as paying young parents/families to have children, and longer & better paid parental leave (which would be a cost to society/taxpayers, but assuming that children are valuable to society, that cost is worth paying).
At least, that seems to be a fairly rational explanation of the data.
Men get into a lot of horrible low end paying jobs too but if 1 out of 100 makes 100 million per year, it averages to 1 million per year.
These horrible jobs are all fairly high risk (injury, sickness, death), they can pay well, sometimes they don't.
And basically, yeah, as I said, that'll skew you averages and medians around.