I had a particularly smart and runty beagle when I was a kid that watched the cats jump the fence once, and then worked out that she could leave whenever she wanted.
The donkey has the reputation for being stupid and lazy because it, unlike the horse, is smart enough to tell the human “I don’t care”
I had a super smart poodle mix growing up, and it was smart enough to easily open the latch on its cage from the inside with its tongue. It also knew how to rearrange chairs in order to climb onto the dinner table.
The ones that are too smart outsmart the owners, which some dog owners see as a bad thing.