The Church has always been aware of the problem and has taken measures to deal with it. But no rule is better than its enforcement. Plenty of men were expelled from seminaries in the old days because they like being with other boys too much. Of course, many get through undetected. After Vatican II many priests forsook their calling, most to get marriied, and many just because they had been disappointed. With so many slots opened, bishops began to accept the scrubs and the queers. Many rationalized by accepting the new therapy notion, thinking they could cure these men.
Once heard a sermon from an elderly priest. He said the Catholic Church has faced a major crisis that could have shattered it about every 500 years. The first was the barbarian sack of Rome in ~476 when Church records, infrastructure were destroyed and many of its leaders killed. The second was the great schism with Eastern orthodoxy ~1000 AD. The third of course was the Reformation. He stated that today’s crisis with sexual molestations by the clergy was equally significant and threatening. The faithful believe that the Holy Spirit will always be present in the Church and ultimately the right corrective decisions will be made. It will take strong and wise leaders to do what is necessary.