Why the Sun hasn't been able to destroy the Earth