Dogs seem to be pre-programmed to do certain things. One is a nightly noisy ten minute genital lick right about the time I'm trying to fall asleep. Another is running the fence with another dog. They go back and forth playing a game of "dare ya" and fakeout.
Here's Lucy playing hard with a visiting dog from next door.