These kinds of jobs being replaced by software is an increase in efficiency. Those people well by and large end up doing something else that's useful for society.
A digger (machine) replaced a lot of workers with shovels, but in the long-term it has clearly been good for society.