In the morning, you naturally lose fluid while sleeping: through breathing, sweating, and going hours without drinking. Water replaces that fluid, while electrolytes, especially sodium, help your body retain and use it. This may help you feel more alert and ease morning headaches, lightheadedness or sluggishness, especially with low blood pressure or if you drink coffee right after waking.
Before a workout, being hydrated from the start beats catching up once you're sweating. Sodium helps maintain blood volume, while potassium, magnesium and calcium support normal muscle and nerve function, which may support endurance and reduce the chance of fatigue, headaches, dizziness or cramping during long, hot, sweaty sessions.