Nmap OS Detection (-O): How TCP/IP Fingerprinting Works
Version detection tells you what software a port is running. OS detection (-O) tries to answer a different question: what operating system is the whole host running, even on ports that give nothing away. It does this without logging in