The average temperature of the Earth remains fairly steady as compared to that of the Moon because of the atmosphere. The atmosphere is a mixture of numerous gases. This gaseous cover of the earth is held around it by gravitational attraction. It acts like a greenhouse and maintain the average temperature and protect us from harmful radiations of the Sun.