Answer:
Because of the less reactivity of copper.
Explanation:
As well as being resistant to the elements and thereby less likely to be affected by rainfall, hail, and mildew than other types of roofing, copper is also one of the most fireproof materials available. Copper is also highly resistant to thermal changes and thereby doesn't deteriorate quickly.
Magnesium would also corrode PDQ. Magnesium sheeting would also pose an unacceptably high fire hazard.
You can't usually just use a single spectrum line to confirm the identity of an element because there are cases that the emission line id not clearly defined. When the emission line is very weak compared to surrounding noise, in which case the more datapoints you have to build up confidence for the existence of a particular emission spectra, the better.
It is called Synthesis reaction