The Eighth Amendment provides protections for those charged with and convicted of crimes. It reads: "Excessive bail shall not be required, nor excessive fines imposed, nor cruel and unusual punishments inflicted."
So the government could not treat prisoners and people on trial unfairly by making them have high fines to pay or have a cruel punishment to serve.