It can mean impacted anal glands, which are irritating to the dog. If they are trying to leave their "mark" I have heard they might do this (sometimes you notice them kicking the grass or dirt w/ their back legs). Keep and eye, and if it continues, contact your vet. It is a very common procedure to express the dog's anal glands in the vet office.