Some dogs growl affectionately if they're being petted or as an expression of their desire for affection. Some people may interpret this behavior as a threat, but it really means that they're happy.