The idea is that they or other businesses will spend their new surplus on hiring workers to do what can't be automated.
The problem I see is that everyone is automating though. Or is it assumed that enough tasks can't be automated to actually effect unemployment?
They can choose to a) re-invest it in the company, creating new jobs there, b) re-invest it in new/other companies, creating new jobs there, c) spend it, creating new jobs wherever the money is spent.
But yes, retraining is generally required to some degree -- as jobs become more productive, people need to learn how to do those jobs!