Machinists and lathe operators became CNC operators, they didn't lose their jobs, just that instead of turning the inputs by hand, they punch numbers in a machine, but the advent of CNC didn't mean anyone off the street can now punch numbers in the machine and replace the machinists since you still need the years of training and experience.
SW devs will be the new CNC operators, about knowing what data to input and how to wrangle the slop machine to get the desired output faster and better than your competition.