It may be possible that it was installing updates. Sometime that requires a restart. I have had some that restarted my system a few times. Apply some patches, restart, apply the next batch because of pre requisites and restart again…. Did you get any message when shutting down that updates needed to be applied ?