Some dogs just do it out of bordom and a simple leave it or redirecting them with a toy does the trick. I've even heard of people getting antianxiety meds from their vet, but IMO this would be a last resort. Lisa