That's assuming everyone has knowledge of their true worth. You can certainly find out, but some people only find out after years and others never do.
I've worked in companies that paid 1/3 less than others (management consulting), many people knew they were paid less, but few people left. Jobs can often be sticky.