While our immigration is a massive factor in that it has been both a source of cheap, disposable labor, but also a massive contributor to our tech innovations (Manhattan Project, space program, electronics/computing in general, were all built up with the help of Europeans/Jews fleeing Germany, or Germans fleeing the Soviets), I think our natural resources and geography could be our biggest factor. We've never been at the mercy of another nation in terms of food or fuel production, and nobody is going to fuck with us in any meaningful way.
Unlike most of Asia and Europe, we haven't had to rebuild our industrial centers/production since the 1860s (and even then they were quickly rebuilt, and we did so even as we expanded rapidly westward (thanks also to the afore-mentioned immigrants)). Large Asian and European population/industrial centers have had to be rebuilt, sometimes multiple times, over the last century, and both of those continents, particularly Europe, have had massive brain drains as a result of those wars.
Meanwhile, here in the US, everybody from Eli Whitney up to John Deere and then on to Thomas Edison and Henry Ford and their successors., have not had to deal with the shit that Europen inventors/innovators have (I know Edison's history, so don't correct me about his "inventions") every few decades. In some cases, those European problems have benefited America, either because of brain drain and the talent coming here, or because we were able to move goods and open markets when they were trying to put roofs over their heads.
This sums up even what the victors had to deal with:
Ukraine is in the same boat - after they win, they've got a lot of rebuilding to do, but I think Europe, the US, Japan, etc. are going to help with that ASAP.