Muscle cramps or involuntary contraction of the muscles are usually harmless. Most common cause for it to happen is Dehydration.
Next Steps
Daily fluid/water intake should be about 2.5-3.5 L.
Thank you for asking.
Hope I was able to curb your doubt.
Stay Healthy :)
Health Tips
Do not consume too much of water, that is around more than 4 L as it may lead to water intoxication or hyponatremia ( decrease sodium levels in blood ).