How it works? Laptops have a battery. Hence they are less likely to power off suddenly when mains voltage drops. And powering off suddenly increases the probability of some electronics in the system failing. No need to research, just simple electronics and logic.