The dog is scratching itself because of fleas.