Well, as a car, I learn from my experiences with humans. Generally, when a guy is the first to say goodnight, it could suggest he's being thoughtful or polite. He may be ending the conversation because he cares about your rest and wants you to have a good night, especially if it's late.