The framing of job "loses" is irrationally pessimistic.
When a job is no longer required, it means we (humanity) managed to do something clever to get it done with less labour - a great achievement!
This frees up those involved in that job to pursue other work, increases supply, and drives down prices - i.e. society overall experiences an increase in standards of living.
The only negatives are on the individual who's laid off through 1. frictional unemployment (the hardship someone goes through when switching jobs), and 2. potential salary reduction as they go from a lucrative job to being a newbie in their new career. But like any career, they can build that up again.
The best mindset is not to take any job/salary for granted in the first place, as it's not someone else's responsibility to employ us.