Iron having Z=26 with electronic configuration as
has 6 electrons in the 3d shell wherein 5 electrons are aligned parallely and 1 electron as antiparallel.
having electronic configuration as
has 5 electrons, all aligned in the same direction.
Iron, when kept in external magnetic field, the magnetic domains of the atom get aligned in one direction that means it becomes parallel and they remain parallel even after removing the magnetic field therefore, it is considered as ferromagnetic.