The science fiction theory is that in the end, work is mostly done by AI/Machines and so people can have access to food, products, whatever they need for almost free or at least there is no need to work anymore and everyone can enjoy a beautiful life.
But in reality, a few trillionaire like Musk will capture most of the value/income that they can from the society advancement dividends and a bigger and bigger percentage of the population will become poor, exploited, and depending on the charity of the happy few.