Agreeing and amplifying: Taking a random search result, the Canon EOS R5 has a 45 MP sensor: <
https://www.usa.canon.com/shop/p/eos-r5?color=Black&type=New>
Assuming 24 bits per pixel, that's 1 Gigabit (128 MB) per image, or ~1,000 images on 128 GB storage.
Dedicated cameras have removable storage and professional photographers will carry multiple 500 GB -- 1 TB+ storage cards, swapping them out through a shoot.
I'll note that the iPhone 15 Pro specs list a 48 MP sensor, which is similar, though storage tends to be as jpeg rather than raw. Compression varies but sizes of 1/2 to 1/15 RAW at high quality are common.
Edit: Corrected GB -> Gb. Bytes are 8 bits.