means that
the qualities of a religious leader and those of the community may reflect one another.
Imagine a case where the quality of a leader can be judged by the behavior of his or her followers, and vice versa, people are as bad or good as their leader.; then “Like people like priest” fits well.