Before dogs were pets, they were coworkers. Humans bred them — deliberately and over centuries — to perform specific tasks: hunt, herd, guard, retrieve, track, haul, and sit in the laps of very important people. Every physical trait, every behavioral tendency, every inexplicable habit was, at some point, a design feature.