But the point of the fine in this case is clearly not restitution, but disincentive. Justice in this case is ensuring everyone is equally incentivised to follow a law that society thinks everyone should follow.
If the goal were only to ascribe economic harms to certain actions and reclaim those costs, it would be called a tax or a fee, not a fine.