Covering lasagna in a metal pan with foil can cause a chemical reaction, affecting the taste and safety of the dish.