Low electrolytes is caused by loss of fluid and dehydration.
Usually your electrolytes get low when you're sick with the flu or have diarrhea, Vomiting, High Fevers and sweating.
When you're sick with the flu or have diarrhea, high fever etc you should always stay hydrated and even drink some Pedialyte which will help replace the lost electrolytes in your body.