Dog’s have very poor nighttime eyesight. They depend on their noses to find stuff. Their olfactory receptors are a thousand times more sensitive than a humans.
The dog walked into the bar, which would have been poorly lit with oil lamps, and decided that he would open the door and go in based on his sense of smell.................
I wonder what Warren Zevon would have done with that Sumerian joke? ;^)