One of my most memorable scenes from Willy Wonka and the chocolate factory comes quite near to the beginning.
Charlie’s dad worked in a toothpaste factory screwing lid onto each tube one by one. Then one day he lost his job because the factory he worked in bought a machine that could do his job quicker and cheaper.
Just like that his job role had become obsolete.
That’s happening more and more these days.
A prime example is self service machines instead of a cashier. Instead of a shop having 4 people working on the tills you can have 4 self service machines and one person there to oversee and assist if necessary.
Granted some people prefer being served by a person instead of serving themselves. However, the main point is that the cashier role is no longer as necessary as it used to be.