Watch this dog and deer racing each other like best friends

from Deer GIFs

Even though they're separated by a fence, this dog and deer have a lot of fun running back and forth in the backyard. I wonder how they got to know each other in the first place?