This remains one of the biggest mysteries surrounding the tale. There are several possibilities - maybe everyone at the inn was hallucinating due to consuming too much alcohol; perhaps someone taught the dog a few words and had it perform as part of an elaborate prank.