I always thought the dog has some kind of wire attached to its leg I cant see how else the dog can do that without knowing unless its a involentry movement.

I think its horrible if the owners are doing anything to the poor dog.