Why was the 8th Amendment Written?

So that the accused did not have to suffer torture or punishments considered horrific or unjust. It was to give individuals humane rights.