Capitalism is trying as hard as possible to replace people with machines, but there are a lot of jobs that machines simply can’t do.
This is not absolutely true. I've seen and worked manual jobs that could absolutely be automated by a fairly simple machine. There isn't much reason to automate low-paying jobs away.
There are also a lot of pointless "bullshit jobs." ~20% of people think their own jobs are pointless.
I've been around the tech startup scene for a while now, and they often do a lot of pointless work that everyone knows isn't useful, just because they know that's what's "hot" right now with investors.