If (e.g.) doctors are automated out of a job, it will mean that health care has become dramatically cheaper, which is a widely distributed rise in living standards. This is more egalitarian, not less.
Thousands of doctors lose and millions of humans win.
Remember, economics is not about the distribution of money, it’s about the distribution of valuable things. In this example, health care is the valuable thing and its distribution seems greatly improved.