Well,there's a few reasons:
worms or fleas sometimes the tail could itch and the dog will try to bite it,failing by chasing it's tail
Hyper dogs are lovable and energetic and chase their tails from so much excitement
Attention seekers dogs crave attention from humans so they chase their tails trying to get attention
no reason at all sometimes they just do it for nothing
H