Dogs chase their tails for a bunch of different reasons including for exercise, if they have anxiety, due to predatory instinct, and just being curious about their backside.