iOS has historically done a lot better with less RAM (as far as how snappy and responsive it feels) than Android. Dunno if that's still the case, but it very much was for years and years.
MacOS manages better than Windows as well. Apple seems to have really good memory management. I don’t know enough to know what they are doing, but in day to day tasks it always feels like a Mac/ iPhone needs half as much memory to feel responsive. Memory intensive work, such as video editing still require what they require though.
I believe it's still true. Apple's swift/obj c++ don't use garbage collection. Android default java/kitlin does, so android is inherently more memory intensive.
If your most commonly used apps all fit into RAM, instead of initializing each app from scratch, the OS can just resume a suspended version from memory, which is much faster.