If you experience exercise-induced muscle cramps, it may be due to an electrolyte imbalance, namely an imbalance of sodium and potassium. According to Michael Bergeron, director of the environmental laboratory at the Medical College of Georgia, excessive sweating during exercise results in a loss of sodium and potassium, and the loss may lead to your nerves becoming hypersensitive.