Is it okay for Fire-type pokemons to drink water?
My guess is water only damages the exterior. This can be seen in humans, too—stay submerged in water too long, and your skin will get damaged, but inside, you are about 60% water. A similar thing probably occurs with Fire-, Rock- and Ground-type Pokémon, with the skin-damage thing being more exaggerated for them.