I’m convinced that dogs and cats fully understand that babies and toddlers are the human version of puppies or kittens; and they act accordingly. The dog will protect her human baby (and we’ve seen cats do it, too). And pet mice would do it if they could.