That is not automatically guaranteed.
Part of the problem with the Western economies is that the mills/mines/etc. used to employ a LOT of people.
A good example is the Natrona Heights steel plant. It used to employ something like 10,000 people at its height. After automation, it will now employ a couple hundred.
Where do 9,500 people switch employment to?
Take your example of the steel plant. Presumably when the 9500 people were laid off, productivity remained the same (or increased) and costs went down. Where did the extra profit go? Was it dispersed among the remaining 500 workers? Was it used to help the displaced workers who devoted years building the steel mill and keeping it running? The very people who designed, forged, and brought on-line the machines which replaced them? No, the upside went to the owners, because they have a slip of paper that says they own the mill.
Our problem is not that we're automating away jobs, it's that the displaced workers don't get to share in the benefits of that automation. Eliminating a job is seen as a disaster, rather than a victory. We should want to eliminate terrible jobs, not keep them around just so someone can stay busy. And I guarantee you, people who don't have to work will find something to do. There's always work to be done, just not all of it is profitable (e.g. raising children, taking care of the elderly, volunteering, open source coding, etc.)
Ever heard of Carnegie Tech (CMU), the Wharton School, or Swarthmore college? They exist precisely because of the existence of massive profits from steel.
Even if we make an assumption that it IS a zero sum game (and that there are no other jobs), then we're into a wildly different conversation around how we deal with allocating finite resources in a culture that supports property rights, and no one is going to solve that in a hacker news comment chain.