it's not, but it's not the general case and also you realise this is the very opposite of the US: you get taxed when overseas (unless your a large corporation) and then get no benefits when returning because that would be communism.
That's a bit of an exaggeration, social security (state pension) and medicare (state healthcare for retirees) are not perfect but they're not terrible either.
If you were outside the U.S. for most of your working life, it’s unlikely you’d qualify for social security (requires 10 years of work paying into it).