Sometimes an extra layer of atoms squeezes between other layers during the crystal's formation; sometimes there are holes where atoms are missing. Later, after the metal has solidified ...