If you are really close to one pole of a magnet and far away from the other then the force scales like 1/r^2, it is in the far field under the influence of both poles of the magnet that it scales like 1/r^3. Electrostatics scales like 1/r^2 (because you fet isolated charges).
The other two are a complicated story.