Some dogs growl as a sign of affection or contentment. Your pup might emit low growls when you pet them, for example. It may sound something like a louder version of a cat's purr. They can also growl as a sign that they want more affection.
Why does my dog grumble when hugging?
It is rather an innate response triggered by the dog's self-defense system. The dog may feel alarmed and he may go into a ''fight or flight mode,'' but since a hug restraints him, he may more likely go into fight mode and react aggressively by giving a warning growl.
Do dogs grumble when they're happy?
Pleasure growling — Some dogs will growl affectionately when they are being petted or as a request for attention. Some people think it's a threat, but it's a sign of happiness.
Why does my dog moan and groan when I pet him?
Most times, your dog's moans are of excitement and pleasure because you are rubbing them. Your dog, in a way, is providing you feedback on the love you are giving. It is also important to allow your dog to make noises that are high pitched and a bit more emotional.
Why does my dog grunt at me when I pet him?
It's generally understood to be an expression of contentment. Dogs grunt when they are relaxed, when they are being petted or hugged, or when their human finally sits down on the couch next to them. While flat-faced dogs typically grunt more often than other dogs, grunting is a common thing that all dogs do.

Below are two helpful articles on a similar topic 👇
Why does my dog make pig noises when I pet him?Why does my dog grunt and groan when I pet him?