You're right that the fact that US factories weren't being bombed was critical, but it's important not to underestimate the scale here. The USA was a world powerhouse before wwii, with a higher gdp than all axis countries combined. Switching to a high-throughput wartime manufacturing powerhouse was straightforward.