Its not an identical scenario. Companies don't pay pensions in most countries. These largely get paid through Pension funds, which by and large investment money in Government backed securities.
These are debt obligations at the level of a country. On 'your' investments.
This is totally different than saying a person should be given a job, even if they don't work.