Pretty much exactly what Aphil said.
The thing is that a lot of what you eat can count towards your water goal - lots of veggies and fruits contain water, too.
But I prefer to consider things like the water content in food, or water from sources like milk, coffee, soda, soup, etc., as incidental. I think very few people consume enough of those things to really make a difference.
.