The Catholic Church in the Middel Ages outlawed marriage in its ranks because when preist died his lands and or holdings reverted to his wife and or eldest son rather than the church. Since that time the church has had an ongoing problem with child molesting and homosexuality in the ranks.
The Protastant derivitives allowed marriage for the latter types of reasons, and because practicing what you preach works better in the long run if you want to promote the traditional concept of family.
The Papal Wars came about because the Church at one point owned more land holdings than those of the combined European Monarchal community. Which ment the Catholic Church had a bigger cash flow, ie, more political control.