When you take a job and a pension comes with it, that pension is part of your pay, part of your conditions of employment. It is common for workers to forego higher current pay if there is a significant pension, since the pension is money to live on when you can no longer work. It is part of the employment contract.

