In the case of the Catholic Church it is because they allowed sodomites to become priests under the theory that that people who define themselves, indeed center their entire identity, by who makes their genitals twitch are no more likely to trespass then those who are normal.
The problem is that this is false.
They then compounded their error by discarding their old ways of dealing with sodomite priests who broke their vows in favor of "therapy" after which they were sent forth to "sin no more".
Doesn't work.
This has led them into their present dilemma.
“In the case of the Catholic Church it is because they allowed sodomites to become priests”
Never. The sodomites infiltrated, lied their way in.