Inherited pensions are generally not taxed as income—at least not right away. If your spouse gets your pension, they might pay some tax when they withdraw it, but it’s usually lower than you’d expect. For kids or other heirs? There could be a tax bill, but often it’s way smaller than the money itself.
And in some countries, like Australia, if you die after age 60, the whole thing is tax-free for your beneficiaries. Hello, tax-free granny’s bonus!