A lot of those people are actually employed but can't afford housing. This is a problem with no good solution in sight so far and it's going to get exacerbated with job automation.
Were we not making these same vapid arguments in the 1800s regarding automation and machines? The Luddites were an entire movement opposed to machines for exactly the same reasons, yet living standards are vastly higher than in those times — even the poor have air conditioners, TV and refrigerators. If we would have listened to the Luddites, we’d still be riding horses and using outhouses with a life expectancy of 45.
Sure, maybe 200 years from now everyone in the world "on average" might be doing better. That still doesn't mean people whose jobs get automated today wont suffer, or that the Luddites didn't suffer when their jobs got taken away back in the day.
In any case, very few technologies (relative to everything that's created) actually make living standards better, mostly just things in healthcare. Almost everything else is pretty much a rats race fueled by business and profit, not by intentions of improving people's lives.
Currently, humanity as a whole has the resources (materials, technology, etc), to provide good housing, education, food and healthcare for everyone on this planet. However, everyday we choose not to do that and do whatever else it is we do instead.
This is just an observation, not a moral judgement on anyone in particular. By the way, I'm personally not doing anything to change the current state of affairs, so I can't really point any fingers.
Hopefully the situation will change at some point.