Random Riddle: 2-7-2016

A man runs into a bar and asks for a glass of water. The bartender pulls out a shotgun and yells at him. The man thanks the bartender, then walks out of the bar happily.

Why did the man thank the bartender?
 

Riddle