The purpose of an economy isn't to create jobs, it's to create wealth. Jobs are just how we've traditionally incentivized wealth creation and distributed said wealth. Automation will be good for humanity in the long run, assuming we don't destroy ourselves during the transition.