Magnetic disorder of Uranus and Neptune explained