The market works best when it's free. When the market works best, wealth increases. As wealth increases, everyone on average is better off compared to where they would be without the market. The better off people are, the more they can pursue whatever non-market goals they have. These goals--charity work, prayer, studying, golfing, gardening, drinking, whoring, whatever--are no concern to the market. They're ethical issues that need to be molded by other "institutions," like the Church, family, neighborhoods, whatever. People won't always pursue laudable goals and there will be unfortunately side effects of all the wealth, but that's because of original sin.
As a corollary:
The market works best when it's free. Whenever the government interferes with the market, the market is hindered to some degree, resulting in less overall wealth and at the same time creating unjust wealth distortions: people getting wealth they didn't earn. The greater the government interventions, the greater the detrimental effect on wealth and the greater the unjust wealth distortions (witness poverty-stricken third countries where 99% live in squalor and 1% live like kings). This is the result of original sin, which magnifies the unfortunate side effect of wealth (mentioned above) when it is combined with (governmental) power.