If not automating jobs that could be automated was better for the world, then we would simply pay everyone unemployed to cut grass using scissors.
Productivity gains help the world by allowing more services and products to be provided at cheaper rates. This software engineer self-loathing I keep reading about is completely misguided, it's like you are expected to hate yourself for doing valuable labor.