It's the same thing with cops and firefighters. Their pensions are calculated based on the earnings of the last few years of employment. So that save vacation days the last few years to inflate their earnings the last few years.
If there is one thing you can count on, it's human greed. And I'm not pretending I'm above it myself.
The problem is that the system is set up to be exploited by the CEOs/etc.