why do most sensors have an electrical output, regardless of the physical nature of the variable being measured
That's easy- spirit of the time. Current technology is all about electronics. A hundred years ago it was different, Litmus for example hasn't electrical output :)