Not everyone can write software or be a doctor, which is why those positions can demand higher than average pay. But automation does not necessarily create unemployment. Wage laws and regulations that price labor out of the market are what create unemployment.
There is literally no end to the things people want done, the issue is always - at what price?
Yeah today because robots are rudimentary compared to where they will be in 10-20 years and then will put 80% of the workforce out of business. Once they become truly bipedal or mobile with some AI they will replace most of everyone.
The problem comes when the skill level it takes just to have a job keeps rising. What are you going to do with all of those, who frankly won’t be qualified to do much more than basic manual labor?