One of the things you do when you wake up is saying good night
People say goodnight after brushing the teeth in the night
Good night is said at night before you go to bed
People brush teeth after saying goodnight then go to bed