Modern prosperity is caused by modern policy. I've seen some reasonable theorising that income basically comes from how easy it is to do business (thinking especially of https://www.grumpy-economist.com/p/the-cost-of-regulation). Which is linked in no small way to the cultural factors chgs pointed out - the most vibrant and high income industry in the world is also the one that sees laws impeding them as a problem that can be overcome.
The attitude of doing things that create wealthy even if NIMBYs object is an attitude that leads to wealth creation. Strange but true. Not the only factor, the political strength of the opposition matters a lot too.
The US in particular benefits from an absurd amount of resources (not least of which is land), a perfectly safe geographic position, the global language and an immigrant culture. Basically able to coattail the British after independence, the destruction of much of Eurasia during WWII cemented its position as first. And great diplomacy, including the Marshal Plan, enabled the US to create an international system with many benefits and natural synergies with its inherent strengths.