Some dogs have curly tails due to genetic variations within different dog breeds. The shape and curliness of a dog's tail are determined by their breed's specific genetic traits. Curly tails could have been naturally selected for as a trait that served a specific purpose in the dog's evolutionary history, such as aiding in communication or as a means of protection.