That is not remotely true. There is no law saying everyone with the same job title needs to be paid the same.
It's illegal to pay differently on the basis of sex, race, or other protected classes. It's perfectly legal to pay differently on the basis of performance or anything that isn't a protected class.
The vast, vast majority of workplaces in America pay people at the same level different amounts.
https://www.costanzo-law.com/google-hit-with-lawsuit-over-cl...