Water is required for any character's survival. Drinking it relieves their thirst.
Water can be obtained in finite quantities from Water Towers, and infinitely from Wells. Water cannot be sold to traders.
It's important to drink regularly in the desert heat. Press [Inventory] to view info on your selected character, if their thirst bar gets too high they will need to drink something. (They will do this automatically when you're not controlling them)