The whole point is that you need fewer humans in the loop. If every factory worker automated out of a job was hired back to work on the robots, we'd skip the automation part entirely.
Self-driving trucks have mechanical parts too. Even if you automate basic mechanical maintenance, operation and supervision will still require human intervention for a relatively long time.