This is a common misunderstanding around those "you need X glasses of water per day" recommendations -- much (sometimes, most) of your needed water comes in your food and doesn't need to be consumed as a separate thing.
And even though there are other health considerations to them, water you take in the form of coffee, tea, soda, etc., also counts.