It is a conditioning tool using pain to teach the dog that having something in his mouth eliminates the applied pain such as an ear pinch or toe pinch.
Do some research online and only begin this training if you are able to continue on with it. There is no turning back once you've started. The dog will be more confident at the end of the training in every way and much more obedient.