Rather like a greenhouse (glasshouse) which retains heat allowing warmer conditions (for growing tomatoes in Canada), so the greenhouse effect retains heat in the atmosphere, allowing warmer conditions suitable for life on earth for many millions of years.