As great as it may be to have it in order to do what we want to do, energy is intrinsically, fantastically dangerous and must be handled with an amount of caution we have never been able to muster. I strongly believe that at-will energy production is all but guaranteed to destroy the world.
Just to say that it’s more than just scarcity of resources.
It's called solar power.
People are so enamored with their belief that AI can basically do magic and let them live in Star Trek that they forget solutions already exist for these problems.
We could already feed, clothe, provide clean water, clean energy, medical care and education to everyone on Earth with current technology.
We don't because, at scale, we don't want to. It's a problem with policy, culture and religion, with our primate minds being driven towards hierarchies of power and scarcity. If AI somehow made free energy available (which it won't because ye canna change the laws of physics captain), we still wouldn't want to.