Tin foil hurts fillings because saliva creates an electric current between the foil and fillings, causing a galvanic shock.