I think Apple has shown time and time again that their devices perform better and more efficiently so they don't need as much RAM. Like another commenter said, Apple controls the hardware and the software allowing for optimization that probably only the Pixel has on the Android side.