Generally what it is the time of the day whether morning, afternoon, evening or night. We wish everyone good morning then start the conversation, good afternoon then conversation begins and similarly with good evening. Why don't we say good night first and then start a conversation? It's again one of the time of the day.
I'm expecting other answers than just because after that we sleep that's why it is asked at last.