There is nothing inherent in market exchange that make markets morally corrupting. Actually, one might argue, markets depend on morals. Voluntary exchange in markets requires trust and a sense of fairness. Before you deal with strangers, you have to trust that they won’t cheat you. You have to trust that your property is secure. You have to trust that social norms of fairness and the rule of law will enforce contracts, protect your property from confiscation, and keep banks sound. You have to trust that the legal system will punish violence, fraud, and corruption.
The modern commercial society did not arise in the modern world until the development of the moral infrastructure of the bourgeois virtues. When those bourgeois virtues are absent or weak, markets fail to work.
Socialism appeals to some, especially the young, because they think it’s on a higher moral plane. But expecting others to serve you leaves you helpless if they refuse, and they likely will because it is not realistic to believe you can always rely on the benevolence of others to meet your needs. Free market capitalism affords others an incentive to serve us not solely because of a benevolence for our wants and needs, which is likely to be nonexistent or ephemeral, but with regard to their own interest. When all exchange is voluntary everyone is encouraged to treat others respectfully, in order to keep their business. This becomes a habit which carries over to other situations where a profit motive may not even be involved. Thus, free market capitalism makes a society more moral. Socialism degrades morality wherever it is imposed. Imposed it must be. It does not come natural to the human animal.