How can judges contribute to the evolution of societies, despite not being elected

Judges play vital roles in the evolution of societies, even though they are not elected. Discuss how judges can contribute to the development and progress of societies.