Let's assume AI is only good at software and math.
If we can use AI to write lots of good software for cheap, that software can automate away a lot of jobs.
So AI does not have to take the jobs directly, software written by AI can.
Especially if that works for software for robots.
why the middle man when it can generate software on the fly
Yup. There’s infinite latent demand for software, we just don’t know yet.