It is sad. But, the people who have missing pets can grieve, and get a new pet. I don't say that lightly, when our dog died, I went into a depression that I needed medication to finally have a day without crying.
But, the judge has to balance the law, and human life, above the lives of pets. What if a person went into the building for a pet, and was injured, screaming for help. Would they just go ahead and implode the building? Of course not. Rescue personnel would risk their lives, in an unstable building, primed with explosives to save that person.
That is why the judge made a decision.