The NT kernel was actually an IBM project, which got divorced from IBM because of contract stuff and Microsoft got to keep a copy. It grew out of VMS which was a heavyweight OS for DEC VAXen, which IBM acquired.