TLDR Qubes OS is a security focused operating system that is geared towards end users. It relies on isolation via the Xen hypervisor (has much less privileged code than Linux, Windows, or Mac kernels), and uses hardware based virtualization features of the CPU as well. E.g. it prevents a compromised network card from accessing the memory of a trusted virtual machine through DMA attacks as an example
And ultimately it incorporates this isolation into a seamless user interface as well
I'm guessing the primary feature that would protect against ransomware is that it allows on to open suspicious links in disposable VMs