It is unfortunate, but that's how the market works. What alternative is there besides the government imposing salary floors and ceilings?
And we as humans control "the market". It's not some abstract impossible-to-reason-with force. The better that we understand this, the better our economies will work.
I'd say instead "that's how the market DOESN'T work" since clearly there are a lot of market failures - master glass blowers being just an example.