Magnets attract metal due to the influence of their magnetic field upon the metal. When exposed to the magnetic field, the atoms begin to align their electrons with the flow of the magnetic field, which makes the metal magnetized as well. This, in turn, creates an attraction between the two magnetized objects.