What does it mean when you had been dreaming of your dead pet? It can seem so real that you believe your pet has visited you in your dream.
A dream about a deceased pet can be triggered by nostalgia for your past. Maybe an event during your daytime had triggered this dream. If you had thought about your pet, then it could also have triggered the dream.