I see this occasionally on my machine. I've always thought it was related to an oversensitive button on my tower, because I've noticed that when it happens I always seem to have just banged my desk (e.g. by bumping the chair against it too hard). Although I could be wrong.
I've also seen Windows restart after definitely selecting "shut down." I have heard other people complain about that with Windows 10.