Ok, but why does the person who got fired get the difference?
At least over here, if you have something like this, the person who got fired would get adequate damages rewarded (roughly the amount of money they lost due to being fired wrongfully) while the state would sue the company for a punitory fine.