It certainly doesn't literally run Windows for games. The Xbox One is a hypervisor based system where a Windows 8 based OS is used for utility applications and user interface, but a custom OS is used for the games[1]. The believe the latter has as much in common with Windows as the Xbox 360 OS (not a huge amount).
[1]https://en.wikipedia.org/wiki/Xbox_One_system_software