It is like processing food in your system. When you drink anything your body takes what it needs and then gets rid of what what ever remains before it becomes toxic to the body.
Drinking affects the body system in such a way that it puts more stress on the body system, (though it may relax your nervous system), so it makes you pee.