Mass-production and other optimizations that use economies of scale to their benefit do take jobs. There's a serious problem in the world's economy that there simply isn't as many jobs as there are people; the world simply doesn't need this much work because the need for work doesn't scale linearly with the population. AI has nothing to do with this. It's a fundamental problem we'll have to deal with either way as our society develops, AI or not. It started ages before the current tech hype cycle.