When a dog dies, we get sad. Why? The psychology is fascinating.