This cannot happen infinitely. It's a problem with the way we approach the world moving past occupations.
Like, coal miners aren't useful anymore, but just telling the miners to "learn a new trade" is not solving the systemic issue of "if society advances, we should provide more for members of society".