Why was the Eighth Amendment Written?

The 8th Amendment is the criminals bill of rights and prevents cruel and unusual punishment and excessive bail. It is based off of a similar part of the English Bill of Rights and was based off the case of Titus Oates.