Sometimes I also have to enter my code in the morning. However, I think that in my case, it's not because of a reboot because of two reasons:
1. The message says something like "You have to enter your code to enable FaceID". When I reboot my phone manually, I get a message saying something like "Your code is required after a restart".
2. I have no gap in my battery graph.
The reason for number 1 is (I think) that I sometimes check the clock during the night when I wake up. So I tap the screen and lean over the phone (next to my bed). This probably leads to a few failed unlocks which in turn makes it necessary to enter the code to unlock it (that was also the mishap when the iPhone X with FaceID was introduced on stage all the way back then). My point is: Just because you have to enter your code, doesn't mean the phone rebooted, maybe there are other people as well who also just have to enter the code because of the same reason as me after some nights.