Terry Pratchett said this quote

People couldn't become truly holy, he said, unless they also had the opportunity to be definitively wicked.