When Did Electrolytes Become a Thing?

I am talking for fast lasting under a week. Why are they so prevalent? So why do you think they are helpful in anyway?