Your body fluid composition
The fluid of our body contains not only water, but also various ions such as sodium. It is for this reason that sweat is salty. Therefore, when you sweat, you lose IONs along with water, so the ion balance in your body is disrupted which leads to dehydration.