In the US, many of the Hospitals throughout the country have names associated with the various religions; St John's, Beth Israel, Houston Methodist, etc. These Hospitals are a blend of capitalism and religious charity. They serve the community's health needs without taxes.
In a religious affiliated hospital, the clergy are part of a holistic approach; spiritual wellness for the dying and sick. They will also have fund raisers, among the well off in the community; extra push for charity. Those who benefit by free market capitalism and are part of the religious community feel blessed and can afford to be generous. This is the community model of religion.
Charity requires giving. Giving to charity occurs more often when people have, or feel they have, extra to give. If everyone was feeling deprived or needy, they would be reluctant to give, and charity would end. The religious push toward making charity possible is based on leading the flock to the greenest pastures; capitalism, so more people can have more than they need, and they can then contribute more to the needy via charity. America is the most charitable nation in the world as well as the leader in capitalism; feel full enough to give and you will give more.
Giving to charity is different from working for a charity for a salary; Capitalist and Big Government approach. People who give to charities do not draw an income from this giving. People who work for a charity get paid to use other people's money for their salary and their generosity. The math is different.
In bible there is a 10% tithe or tax. The bulk of the social needs is done through charity and the good will of each other. This 10% would not be enough for big government. Socialism is huge overbearing government that inefficiently micromanages, while serving itself. The religious 10%, which was a low tax rate, put more money in the pocket of the citizens, so they feel full enough to give extra to charity.
There are many charities in the USA, where most of the money goes into overhead; charity for salaries. The generous people who give may not even know most of their money is going to those who are not in need. The sales pitch are the poor animals but goes to the rich wolves.
Social programs are good in theory, but they are often there as much for the needs of big government, as for genuine social needs. In the USA, we do not have a social safety net, per se, but something more like a social safety hammock. In these programs, the needy are helped but are not taught to become self sufficient, so they can leave the net. Instead many generation stay in the hammock, since such programs need bodies to exist and grow for the benefits and the salary of the workers. Pensions cost a lot of money.
In the USA, you can collect social security by being a drunk or drug addict, without any movement to set you free from your demons; safety hammock. This creates dependence, so big government will not shrunk. Socialism is big government on steroids and places all the power in hands of those at the top of government, who serve themselves. Castro who heads Cuba is a billionaire.
There is a saying you can give a man a fish and he will not be hungry, or you can teach him to fish and he can feed himself, forever. The social programs do not teach one how to fish, since this approach could work itself out of a job. Religious charities are there to help the whole person so they can walk again. This is also to the benefit of the giver who can now give to someone else and have another neighbor to help the cause.