Very short answer is mobile OSs were build with security in mind after the internet was invented (causing the creators to be aware of viruses).
Meanwhile PC OSs were first written 40+years ago before viruses were a thing and due to backwards compatibility (and difficult to rewrite) it’s very hard to completely change how they work.
Latest Answers