It would be nice if things were fair but that isn't how the market works.
https://en.wikipedia.org/wiki/High-Tech_Employee_Antitrust_L...
If you employ N software engineers and an infallible oracle told you that you’d create more value if you hired 2 more, you’d try to hire 2 more. If the oracle told you you’d create more value with 2 fewer, you’d try to get to N-2, making your demand for SWE labor a function of value created.
Of course if you aren't making enough then you won't be able to afford to hire somebody but that has nothing to do with the market rates.
I can’t see any reasonable way that the market for SWEs “has nothing to do” with the value created by them.