Just now it happened, and after a couple minutes it turned back on, which is not something that happened before. Before this I have only seen it turning off by itself and I had to restart it after a few days to restore it myself.
I am not running any application that doesn't support aero, so that shouldn't be it. My PC also doesn't use power-saving settings either.
Why would windows 7 do this?