The stacking also allows things in the frame to move - it uses optical flow to track movement.
That's how iPhone manages to take a tiny very noisy sensor and give non-noisy output.
If you want to see how the camera performs without this stacking, try taking a photo from a moving car of something behind railings. The moving railings screw up the optical flow, so most of the 127 other frames will be discarded (if regions of an image arent a close enough match, then the region will be discarded), and you'll get to see all the sensor noise.
And all this has nothing to do with manual astrophotography, where you ditch computational apps, use a mount and shoot actual unstacked raw sensor frames with several seconds exposure each, interleaving them with dark frames, and do the computation yourself with the dedicated astrophoto software which is far better than any app if you calibrate the sequence and do the math correctly. Every phone is capable of this.
iPhone's hardware is more than adequate to capture RAW videos at 60fps with binning, not just photos (too bad Apple doesn't allow it, so it can't). People are using Android smartphones to shoot videos in RAW for several years already. OnePlus 8 Pro and later can easily capture a RAW stream in 4K 60fps.