Automation is a good thing. It leads to higher productivity and people can do other things instead. If a job cannot pay a living wage and doesn’t offer a decent work environment it shouldn’t.
In my lifetime though, the median worker has had their productivity go up and their real-pay stagnate. With the trajectory we are on, the people who "can do other things instead" will get jobs that generate more profit for their employer for the same pay as their previous job.
The saying is "a rising tide lifts all boats" but at this point it seems that only a select few are granted boats.