On The Origin of Species by Charles Darwin Chapter 8 Page 16

and likewise of the oddest tricks, associated with certain frames of mind or periods of time. But let us look to the familiar case of the breeds of dogs: it cannot be doubted that young pointers (I have myself seen striking instances) will sometimes point and even back other dogs the very first time that they are taken out; retrieving is certainly in some degree inherited by retrievers; and a tendency to run round, instead of at, a flock of sheep, by shepherd-dogs. I cannot see that these actions, performed without experience by the young, and in nearly the same manner by each individual, performed with eager delight by each breed, and without the end being known — for the young pointer can no more know that he points to aid his master, than the white butterfly knows why she lays her eggs on the leaf of the cabbage — I cannot see that