The religion itself has nothing to do with it. It's the position that attracts the abusers. A pastor is a person that members will implicitly trust to be a good person. They won't even think twice about leaving their children with them. It never occurs to them that a pastor could lie about that just like anyone else.
For an abuser, faking piousness in exchange for direct unfiltered access to your preferred victims is an easy choice. Heck, you're even paid to do it.
I disagree that religion has nothing to do with it. Religion is the vehicle used for these people to molest children, and religion often protects them when they're found out.
Religious institutions do an absurdly terrible job of governing themselves, or background checks, etc.
They're the reason so much of this is allowed to keep happening.
The religion absolutely has a component in the molestation. At the very least it provides built in authority, trust and respect for the pedophile. Beyond that idea that a non existent entity can forgive any transgression against a child and welcome you into their realm is disgusting.