Behaving irrationally, intentionally or not, is scaring investors away rather than attracting them.
Seen from abroad, trust in the rule of law and property rights has been eroded. Today Trump sends randos to El Salvador, maybe tomorrow he will nationalize enterprises or other assets, with no meaningful opposition from the Congress and the judiciary? Germany is already pulling gold from the US, that had been stored there for decades. Better safe than sorry.
Amazingly, this is exactly what Russia has been trying to do for years now: introduce chaos and uncertainty. Capitalism can handle bad news all day long, but it can't withstand prolonged unpredictability and ambiguity.