No, it isn't "basic" discrimination, it's merit-based discrimination. It's because women take more career breaks, more time off and generally make different choices to men which often put them at a career disadvantage. If you can find me a company which systematically pays a man more than a woman for the same entry-level job I would be astonished.