Cats and dogs, that have personal relationships with people, yes. There was no personal relationship between the man and that giraffe. A random cat you met one time wouldn't know you were dying, either. Also, giraffes are not domesticated animals. Ungulates do not generally form very close relationships with people like cats and dogs. Even horses, where people have close relationships with, do not have the same kind of bond that cats and dogs form. Hell, it's been shown that dogs don't actually love their owners the way that people think they do. A lot of what is going on is anthropomorphism, and that's just a natural human thing to do.