This has always been the way. If you're super Catholic and really believe that stuff, realizing you're gay means you aren't going to have a bunch of kids with a wife and feel fulfilled. It's a "challenge from God" and you decide the only acceptable course of action is to assume you can be celibate for the next 80 years and make your family proud.
Then oops! You're so repressed you diddle kids.
The movie "Doubt" covers this pretty well.
Source: was raised Catholic and knew two very religious closeted gay men that became priests. I don't want to suggest that being gay is wrong or that gay men are more likely to diddle kids, but I am suggesting that sexual repression causes sexual problems, Catholicism is stupid for enforcing celibacy past the 1700s, and all religion is a lie. Fite me irl, bro.