Factory workers that did repetitive things that didn't require any thinking got automated away by machines. But there are still factory workers today that do things that require thinking.
Machines don't go deep on problems, humans do. A machine has no will or purpose to solve a novel problem on their own. Hope that answers your question.