Pets really do form a bond with you that hurts when it gets broken.
A "scriptural" answer only creates more questions. Humans "inherited imperfection from Adam and Eve." That's why we die, supposedly. But why do the animals die?
Sorry for your loss. I wish I had the answers but some things we just can't know.