There are several reasons for dogs to self-traumatize themselves. Hot spots (moist dermatitis) are acute onset, itchy, painful areas of dermatitis. Ectoparasites like fleas, ringworm, and mites can cause this behavior too. Allergies are a common problem in dogs. Your veterinarian will help diagnose the problem, treat it and any secondary infections present.