Cruel and unusual punishment
For most of recorded history, the death penalty was often painful on purpose.  Severe historical punishments included being burned or boiled to death; cut or torn apart; crushed by stones; sawed in half; crucified; and many other extremely painful methods of execution.  Punishments that were not meant to cause death were also often painful on purpose.