Excessive sweating, when not mitigated by proper diet can deplete the muscles store of the water and electrolytes they need for energy, especially sodium, potassium, magnesium and calcium. If there is loss of too much fluid and salt, the ions in the nerves that regulate contraction will be disrupted, and cramps will become more likely