Physical mechanism for the onset of radial electric fields in magnetically confined plasmas