The article talks about how globalization caused automation to replace millions of factory workers. Factory jobs, aren't the greatest, especially before the 1970s, and in many parts of the world, are still awful. Similarly, If we could replace every mining job with robots we'd remove a lot of human abuse in many parts of the world.
Reducing the value of human labor never goes well. As people become less valuable they become easier to abuse. There will always be a dirtier and more dangerous job to be done.