>the earth lacks any sense of what risks came before it
The earth is a bad term here, how about human civilization?
Your DNA, epigenetics, and a ton of other subconscious intelligent processes are well aware of the risks and contain a massive set of tools to overcome them.
The problem? Many of these tools have to run from zero in an egg to work in the changing environment.