The man had hiccups. The barman recognized this from his speech and drew the gun to give him a shock. It worked and cured the hiccups - so the man no longer needed the water.
This is a simple puzzle to state but a difficult one to solve. It is a perfect example of a seemingly irrational and incongruous situation having a simple and complete explanation. Amazingly this classic puzzle seems to work in different cultures and languages.