Due to the influence of magnetic field of a magnet on Iron,Iron also get magnetized. So all magnets attract Iron and Iron compounds.