In dry soil there is electrolyte (substance that produces an electrically when dissolved in a polar solvent), but that electrolyte is not dissolved, to produce electricity free ions are needed. In pure water there is a very small amount of ions (H⁺ and OH⁻). In wet soil dissolved electrolyte separates into cations and anions, movement of anions and cations in opposite directions make current.