A domesticated dog considers its family its pack, its owner its pack leader.
In addition, dogs are vocal animals and use their barking, howling, and crying to communicate with you.
When you leave the house your dog cries because it doesn't want you to leave him alone and wants you to know that.