
That brought back some old memorise! I had a Golden that did this, except he kept going until his legs were big sores. It essentially just a bad habit he'd got into. No vet managed to sort it out and it wasn't until after a full 3 years of this (in which time I could never show him as his front legs were so terrible, stained and with open sores) that it occurred to me to drastically increase both his exercise and obedience training. THEN he stopped. This was in the 90s so a long time ago.
Another Golden I had, recently, when he got older he licked the fur off his hind paws until they were bald. We managed to work out that he did it when it rained a lot, and it was arthritis bothering him and the wet weather made it worse.