As for the physical vs cognitive labor: we automate the bottlenecks. Back in the day that was physical and now it's cognitive labor.
Also, let's not forget that right now programmers are one of the best compensated professions. For the non-tech businesses, we are the expensive gatekeepers for the world of software. Need to build a non-trivial tech solution? You could easily end up paying hundreds of thousands of dollars for devs to write it and maintain it.
If that instead can be done by the end-user themselves or with less employees, I'm sure they will be super happy to save resources. Or maybe you don't care about these people?