Welcome to FlyerTalk Ash-MEL.
Some dogs have a tendency to bark when their owners leave them alone. Perhaps the dog was only accompanying the passenger to the restroom. The passenger may have brought the dog to the restroom so the dog wouldn't bark or disturb other passengers during its owner's absence?
------------------
Sometimes right is just as wrong as wrong is!