Why does copper turns green on exposure to air ?

This happens because of corrosion of copper , as the copper is exposed to air it reacts slowly with water from the moisture present in air, carbondioxide and oxygen. And the product formed is a mixture of copper hydroxide and copper carbonate as shown below.