The darkening of foil may be caused by moisture from the food being covered. This results in a buildup of aluminum oxide. This is a totally harmless substance that is naturally present on the surface of foil. Moisture tends to accelerate this buildup.