Judges sentence criminals as punishment for crimes.