Anal glands. When they become full, it is an uncomfortable feeling for the dog. It is why dogs 'butt scoot', to express the glands. The glands will express themselves when the dog has a bowel movement, providing there is enough roughage in the diet.If your dog's diet lacks enough roughage, the stool is softer and the glands don't express.
Some dogs are more prone to these issues then others. Once it is taken care of this time, you can add some roughage by adding some green beans or raw canned pumpkin to the dish of food. If you opt for the pumpkin, make sure you purchase pumpkin and not pumpkin pie mix. Plain ol raw pumpkin. My lab had similar issues for the first year or so and I added pumpkin to his food. Anal gland issues are not uncommon, and happens with all sizes of dogs. Made a deal with my local grocer to buy it by the case and he gave me a great 'case discount' price.
Once Buddy became a little more mature he didn't need it any longer. We feed Taste of the Wild dog food.