I'm not defending the system.
However, the priest also took holy confessions from all of his sheep, which is as good as medieval surveillance gets.
He could not, however, come out and say that somebody already confessed the crime because holy confession was supposed to br private.
So the church as a political institution used a device which allowed to act upon knowledge obtained in holy confessions without admitting that they did so, thereby ensuring that the sheep did not loose faith in the confidentiality of holy confessions.