Because software needs to be aware of the memory lifecycle to avoid losing data when its process gets culled. iOS apps are explicitly built for that, but to my knowledge macOS apps aren't, they are allowed to assume they will run forever until the user closes them.
Because software needs to be aware of the memory lifecycle to avoid losing data when its process gets culled. iOS apps are explicitly built for that, but to my knowledge macOS apps aren't, they are allowed to assume they will run forever until the user closes them.