We could feed the whole population of the world if we decided to, we definitely have enough production[1]. If we pretend AI-assisted automation can do most work - which still currently is an highly dubious claim - we could just provide food and shelter for free to everyone, if we so desired. It would require quite a lot of restructuring and dietary changes, but it is possible.
[1]https://online.ucpress.edu/elementa/article/doi/10.1525/elem...
If this is true, you would think that companies would be opening shops in the middle of (some shithole country) so they can make money (or someone else would grab it). But they don’t, why is that?
You're right that we could already feed everyone with a different distribution of produced wealth. That part is not something that AI will change (although it would raise the resulting standard of living).
What it does change is the basic equation underlying capitalism as an economic system: a few people concentrate capital in their hands, but capital by itself is useless without labor, so they have to hire workers to produce something useful with all that capital that they own. The workers get a shit sandwich, comparatively speaking (given the amount of wealth they generate), but they do get something out of it. The system is stable overall because, while a better arrangement is possible, most people - even low-wage workers - have too much to lose to riot.
With AI that can do most work, the capital no longer needs labor. People who own all the robots can just have them produce whatever they need. Everybody else is then "economically redundant", and the whole system collapses because people aren't going to sit around and starve because there are no longer jobs to be had - and at this point they have nothing left to lose and everything to gain by rebelling and taking over the capital.