True, however if you want a perfect environment for homosexuals and homosexual pedophiles, it's the priesthood. The priesthood offers the pervert vulnerable young boys (parochial schools, camping activity, youth events) and zero accountability for the that priest's movements and homosexual associations - which otherwise a wife would serve as a hedge.
Sorry, it's not rocket science. The celibacy requirement is and always has been the primary reason there are so many perverted priests.