Nobody likes tapeworms, so it makes logical sense that your dog is scooting and trying to rid himself of them.
Although your dog normally does not have to wipe, sometimes you may have to wipe for him.
Fecal matter may get stuck to a dog's fur and can cause irritation and poor hygiene.