Dogs are technically cursorial animals, which is a term that indicates that they are designed for swift running.
Behaviorists believe that depriving a dog of that course of action by immobilizing him with a hug can increase his stress level and, if the dog's anxiety becomes significantly intense, he may bite.