It is possible that the system was hanging up on a Windows update that did not properly install
Windows OS keeps a list of the last 5 registry settings (or is it 3) and also does the same for the MBR (Master Boot Record)...
So when you run into an unstable or other boot up situation, each restarting of the computer will cycle through the last 5 (3) stable MBR and/or Registry backups...
Going by what you posted, this sounds like what it might could have been
Just taking an educated guess here...
Just to be cautious, scan for possible malware/virus infection, anytime you try to boot up your computer and it hangs, then starts normal the next time you go to boot up.... or if your computer suddenly decides to up and restart on its own with no reason
I would do a virus scan ( from multiple sources, example: ESET free online virus scanner, Trend Micro's free online scanner, Malwarebytes free scanner etc)
I would also do several shutdowns and restarts to see if all is working normal now after I have thoroughly scanned for possible malware infection...
Hope this helps
TC