Some Popes throughout history have been some of the meanest MF'ers. They were outright ordering to have people tortured and murdered. Innocent people, charged with things like "heresy", who they had "feuds" with or perhaps other reasons. Why would any God allow such evil people to infiltrate his church? The Roman Catholic is one of the earliest denominations of Christianity too.
There were twelve apostles chosen by Christ. One (one-twelfth) betrayed him. This has always been a solemn caution and reminder that not all who are close to God are all that is hoped for, all that they should be.
Further, if I recall my studies correctly, the Church has never had two bad popes in a row. In other words, the Church, just as the Apostles did before them, worked to undo the damage of the one.
Finally, what was happening in the one spot-lighted diocese in Rome was very far from what was taking place within the whole of Christianity. I've moved around quite a bit, and as such, have been a parishioner in about a dozen parishes. You know of the sex scandal in the Catholic Church. While none of the parishes of which I was a member was ever remotely involved in these things, all priests (for awhile) were broad-brushed with what tainted the few. There were Catholics, even in these parishes where no wrong was committed, who said, "Forget this," and left the Church.
I don't blame them. But for those of us who stayed, we stayed because there is something greater worth staying for. The Catholic Church is now the model of how to best protect children from child predators. Yes. Every single one of us feels the Church never should have been in the position where it was in desperate need of cleaning up its act, but those of us who stay, stay because of the belief, the certainty, we have something worth cleansing. Jesus cleansed the Temple in his day; we continue that work in our own.