As late as the seventies, it was common to pay men more because they had families to support. Nowadays, it really isn’t the companies place to use need versus ability when setting pay. That’s a good thing.
I was delivering newspapers then; I can’t speak to that. My whole adult working life really started during the political correct administration of BJ Clinton; this issue has been front & center the whole time.