I think that's just a matter of 1. resources and 2. risk tolerance.
1960s USA had a less superficial political culture, so was more willing to tolerate PR-sensitive risks in pursuing major technological achievements, and it could allocate a much larger proportion of GDP to the Apollo program, as government directed social welfare spending consumed a far smaller share of GDP: https://fivethirtyeight.com/features/what-is-driving-growth-...
1960s USA had a less superficial political culture, so was more willing to tolerate PR-sensitive risks in pursuing major technological achievements, and it could allocate a much larger proportion of GDP to the Apollo program, as government directed social welfare spending consumed a far smaller share of GDP: https://fivethirtyeight.com/features/what-is-driving-growth-...