It is because in the whole part of the narrative the dog was very consistent in doing the right thing and helping others such as the baby. After all his loyalty to the family, he was still accused and is hated by the people. And then the truth came and he received praises from different people.