Dogs can get jealous when their humans display affection toward someone or something else.

Fact source