Adding a bit more -
In the US, in certain types of dog rescue centers, they can't keep dogs indefinitely. After a dog has lived in the center for a certain period of time, it is euthanized. The dog in the story had been in the rescue center for a long time.
Lucky family for finding their dog just in time!