For a magnet to stick to a fridge door, several physical effects inside of it need to work together perfectly. The magnetic moments of its electrons all point in the same direction, even if no external magnetic field forces them to do so.
Source:
phys.org