Just one of the possible reasons. Could be.
Another could be that dog he was only excited by the presence of the baby who's inside the pram and alone in the hall. Maybe he wants to play with it or was just a bit puzzled or amazed by the new sight, an opportunity for him to exercise his vocal chords. Just kidding.