When a guy says goodnight first, it could mean a variety of things. However, commonly, it often signifies that he values the interaction and wants to be the one to close the conversation on a positive note. This can be a sign of being caring and respectful.