Your instincts are right—your dog is helping your mental health.