"Happy tail syndrome" the dog was likely predisposed to it as they do seem to have a very long and slender tail. Even a dog's temperament can affect it and it's not uncommon. Goodest doggo was probably just enjoying life and it was bound to happen eventually.