The electrostatic energy of a solid object (with specified shape and total charge) is minimum when that charge is spread over the surface. Like any other free dynamical system, the charge on a conductor will seek the configuration that minimizes its potential energy.