Salaries aren't about what someone "deserves" or "should earn".

Those in control will try to capture as much of the return as possible. How much value the worker captures is based on their relative power (ability to move to a higher paying employer, scarcity of skillset, laws such as minimum wage, etc).