The welfare state (in the UK) has existed since people who are now 87 were entering the workforce. It used to be a lot more generous.
There is no test for having worked your whole life needed to get an old age pension. Unemployment benefit claimants get a National Insurance stamp.