Actually most of the Church’s wealth was gained via methods much less honorable than Capitalism. Selling indulgences and the like.
Not MOST of the Church’s wealth. Just St. Peter’s Basilica.