This is on full display with the US's Venezuela problem: no one believes the US will hold it, so oil companies don't want to invest because last time exactly this happened - they had everything seized.
Imagine if you'd invested in lithium mining in Afghanistan 15 years ago: you'd likely have paid a lot, made little money, lost employees and then lost it to the Taliban.