The named elements have a d-shell (or f-shell in case of rare Earth magnets), which isn't completely filled and hence have a net spin moment. These spins in turn polarize the spins of the conduction electrons. The conduction electrons are not localized, so that they in turn also tend to polarize the d-electrons on neighboring atoms. This mechanism is called itinerant magnetism. However, the polarization of the conduction electrons oscillates as a function of the distance from the central atom and also of the filling of the conduction band. In favorable cases, this mechanism leads to an interaction which stabilizes parallel orientation of the spins on neighboring atoms and thus ferromagnetism. In other elements, like chromium, the spins align antiparallel, so that no net magnetic polarization results. Other elements simply lack the open d-shell while other elements are ferromagnetic in principle, but the effect is weak so that their Curie point is below room temperature (e.g. Holmium).