An error occurs. The driver doesn't handle the error so it gets kicked to windows. Windows not knowing what the driver is all about, decides to stop the computer as it can no longer guarantee windows integrity and will stop rather than risk trashing your data.
Bad memory, other hardware problems, corrupt or bad drivers, software
problems - in other words lots of causes. See this link for info on
specific stop codes: