Some dog breeds are bred favouring a docile nature and are frankly stupid. Others, like the Border Collie are smarter than their owners sometimes.
Just like human races.
Border collies are demonstrably smarter than bulldogs. Some breeds have been intentionally bred to be more intelligent than others. NOT like human races as someone else suggested, which have not been bred for intelligence.