It helps that dogs are scientifically proven to be as smart as 2-year-old kids.
While both dogs and cats prefer routine and don't like uncertainty, dogs are much more adaptable than cats.
This is because dogs usually bond with their owner rather than with a specific place.