Quite simple - the magnetical particles want to keep their orientation (hysteresis describes that willingness). If you turn the magnetic orientation, slight remnants stay from the preceeding state and it can be read with precision devices. So you have to turn your 0s to 1s 5-10-20 times randomly until you can be quite sure nobody can reproduce the original state - speaking of hard disk surfaces, simply taken.