I got into this habit after joining IIIT, Hyderabad as a student of Computer Science and Engineering. Generally, in IIIT, students sleep after 12 AM (and we wish each other "Good Morning" before sleeping !!).
Read this post on abhisheksainani.blogspot.com