A cat moves its tail when it is about to pounce on some kind of prey. I used to watch my cat sit at the window and watch the birds. When one got close, she would sit perfectly still except for her tail. That would wag back and forth.