It literally happens every single time - people DO lose jobs. They might get new jobs, but they definitely lose their old ones.
And not everyone gets new jobs, because usually the new job is fundamentally different and might not be compatible with the person or their original desire out of their employment.
The problem isn't so much automation, but that the benefits of automation are invariably reaped by a few tech CEOs. It's not society in general that benefits, it's that the rich get richer, and the rest of us barely scrape by. If wealth were evenly distributed, nobody would bat an eyelid at AI.
AI is not the problem. Late-stage capitalism and wealth disparity is.