How Punishment Safeguarded Community Purity