Windows runs system-level commands and tries to communicate with the hardware in question or with all in general. It can reset, restart, enable and disable the hardware to give it a fresh start. So if you have an issue with any particular hardware, it can quickly figure out the problem.