Pets are no less an important member of your family than a spouse, children, parents, etc. We may obtain these companions knowing full well we expect to outlive them many times over, but that doesn't mean the eventual loss impacts us less than losing any other member of our family.
Never think your comparison isn't apt because it's "just a pet" :)