In a civil case it is not a jury's duty to teach anyone a lesson, it is their duty to assess and award restitution for noncriminal wrongdoing, nothing more.
For the actual damages section, I agree, a juries responsible is to determine the, well, actual economic harm that's befallen a person.
However, juries are also tasked with awarding punitive damages, and for this the juries responsibility is literally to determine the appropriate amount to teach someone a lesson. That's literally what punitive damages are intended for.