These strategies are employed by natural selection, immune systems, etc. indirectly through random mutations, which gives more chances of survival when the "unthinkable" happens. I always thought this explains why there's people out there who are allergic to the weirdest things.