Modern operating systems are not just a kernel that can run programs. They ship with a wide array of programs and a large desktop environment. And code size is probably a relatively small part of the equation too. All these built-in programs and things come with art assets. Sounds and graphics that can scale to 8K displays while still looking sharp. Some of that is vector drawings that will scale indefinitely, but there are also PNGs and bitmaps in there.The really interesting question is why both MacOS and Win have grown so large, compared to their origins. The first versions could even boot off floppies! The best version of Windows IMHO was Windows2000 (Win2k). It has multi-threading and proper multitasking, can run in 32Mb, and can be set up to only take up a few hundred meg of HDD. A bug-fix/driver updated 64bit version of that would be nice today! (ReactOS intended to be that..)
I wonder what would be the "peak" MacOS version for mac-users - best trade-off of features vs bloat?
A truck is not bloated because it is bigger than a motorcycle.