Morality and the free market, 2 different things.
In the moral sense - Of course teachers should make more than rappers, and doctors should make more than NBA players. And of course, our troops should make great money, and drug dealers should make zero.
But the free market doesn't work in the moral sense, only laws made by corruptable men who create and enjoy loopholes.
So going by your logic, then all laws should be preterred for the market, because they are made by corrupt men. There is a market for pedo snuff, where children are filmed being raped and then killed and sold to perverts. Without laws establishing severe penalties, a lot of perverts who would otherwise not do this for fear of punishment will do it. Laws might be made by flawed men, and they might be to a large degree anchronistic and biased, but they are the only protection civilization has against the moral-less market. The market is essentially the law that animials live by, where the strongest survive and where you live only to indulge your desires. We Humans are better than this. We organized into a Society, which means sacrificing egocentric desires that are harmful to to others as well as cooperating and showing altruistic behavior to others.