Its quite simple.  Your body uses water to balance electrolytes in the cells.  You eat too much salt, or protein, or other things that are flushed out with the urine and you need more water to accomplish that.  If you excercise and loose extra water through sweat, you need extra water to replace it.