There are many reasons a dog can act like this, such as a high-grain diet, under socialization, a lack of obedience training, or not enough exercise.