It's also a part of life on my Macs, just not as often since it seems like they don't get updates as often as my Windows machines.
Anyway, I'm glad that Windows restarts for me when I'm sleeping and I wish my Macs would do the same. It's pretty easy to avoid having it restart at the wrong time - you just go into the Settings and tell Windows what your active hours are. They let you enter a time range of up to 18 hours.