The earth has an average temperature of 33°C which makes life possible on earth. This is due to:
Carbon dioxide and methane in the earth's atmosphere allow heat from the Sun to reach the surface but does not allow heat escape the planet's atmosphere. This phenomenon is called the 'Greenhouse Effect'. This effectively stores heat raising the global temperature which makes life possible on Earth.