Origin: Germanic Old English suffix
Good night has 2 different meanings across 2 categories:
Noun · Phrase
a conventional expression of farewell
A farewell said in the evening or before going to sleep.