My dog does this and it's related to allergies. His skin gets moist from the licking and then he is itching at it and scooting. He is a cocker and has environmental allergies. It's not a habit, it's an irritation. My dog has to go on prednizone periodically to clear it up. It's like a bacterial infection on the skin. Get it treated because if they go too long your dog keeps you up all night like mine is now....