Greenhouse gases are very important to earth as it cools the atmosphere. The moon has no atmosphere and their are no heat trapping gases to cool its surface.
Temperatures on the moon are extreme, either very hot or very cold, as hot as 200C.
NASA has has confirmed CO2 in the upper atmosphere protects earth from solar storms. http://www.principia-scientific.org...y-proves-carbon-dioxide-cools-atmosphere.html
All gases can be heated including nitrogen and oxygen as shown in the table of specific heat of gases. http://www.engineeringtoolbox.com/specific-heat-capacity-gases-d_159.html
Note hydrogen is very hard to heat up as is water as explained next. https://www.boundless.com/biology/t...ater-51/water-s-high-heat-capacity-283-11416/
Wind in the form of oxygen and nitrogen is a powerful force and cools our planet by removing heat from the surface by conduction. Wind cools our bodies by evaporation of perspiration.
Hot air rises and cools as it expands forming water vapour.
Clouds help shade us from intense heat in the day and keep us warm at night by impeding escape of infrared heat .
These gases help maintain our planet in a temperature compatible with life.
Oxygen levels are maintained to support life. Too much oxygen and we would be engulfed by fire; too little and animals would die. http://classroom.synonym.com/minimum-oxygen-concentration-human-breathing-15546.html