The court does decide, but the plaintiffs are allowed to present their opinion on what it should be and if you manage to screw up your defense enough then the jury gets told to agree with the plaintiff.

This is also the result of multiple lost lawsuits as well as additional penalties from not complying with court directives during the cases.