We tend to anthropomorphise and attribute human emotions to our dogs. A good example of this is the so-called guilty look.
Two recent studies find that people experience less pain when a person is in the room with them, but even better outcomes result when a dog is present.