Windows 10 Boot Camp shuts down and boots into macOS overnight
Is Windows set as the default boot source in macOS's System Prefs > Startup Disk? 

If not, then Windows could be initiating the reboot for its own housekeeping purposes [which it tends to do a lot], but macOS is taking precedence at the actual reboot.