Except that will cause a tax increase now rather than a tax increase twenty years from now, and is political suicide.
Underpay during working years and promise an outsized pension to make up for it (since that passes the buck of having to fund it to some other sucker who's in office much later on) is a common pattern in the public sector. If you want to end it, you can simply pay competitive wages up-front (and no, pointing to a handful of outliers does not indicate that the average public-sector salary is competitive with private sector).
Government would be so much cheaper if they didn't pay the workers and instead just made them straight up slaves! Also, they need to find workers that don't need food or energy, since those cost money.
Citizens and their representatives aren't paying attention, don't care about pension issues, or don't understand them/aren't having the costs explained. Investors are buying bonds from the state either without performing due diligence or assuming that the state will get bailed out if they do run out of money.