Only when those conditions arose was a google possible, and in many ways inevitable.
To compare the invention of electric light and the telephone with the moonshot is to compare apples with oranges about as bad as I've ever seen it.
Compared to the amount of money wasted on various nonsense projects in their time, SDI comes to mind but there are plenty of other examples the moon saga was one of the high points in the history of humankind.
Sure the telephone and the electric light are great inventions, not a day goes by without use of them for a large portion of the people on the planet.
But they did not inspire a generation of kids to follow the path of science the way the moon episode did. We would most definitely be in a completely different world technology wise had that not happened, it probably was one of the best returns on investment in the history of man.