The KMOS3D Survey: Investigating the Origin of the Elevated Electron Densities in Star-forming Galaxies at 1 less than or similar to z less than or similar to 3 uri icon