My current focus is on machine learning for industrial application. 15 years ago my main focus was the paperless office. And before that common office automation.
Its true, that not every coder is freeing people from work.
But in average we destroy stupid jobs, and replace them with smart machines. Those jobs will never come back. The only kind of work that will be left are social work, that is currently badly payed.
The result is that there will less demand for work, the wages will sink to the botton, nobody would be able to buy things, and capitalism will destroy itself.
The only way to avoid a communist slave state is an universal income.
If your code was slower and more expensive than someone doing the work manually, you would doing another job.
I think.