Atmosphere is covering the earth, like a blanket, we know that air is a bad conductor of heat. The atmosphere keeps the average temperature of the earth fairly steady during the day and even during the course of the whole year. The atmosphere prevents the sudden increase in temperature during the daylight hours. And during the night, it slows down the escape of heat into outer space.