https://en.wikipedia.org/wiki/Technological_unemployment
This is one of the major reasons you're seeing pushes for basic income. The future simply doesn't have enough jobs to support the amount of people who want them.