Yeah it was crazy, at one point in the mid-90's, they even had QuickTime burned into the ROM!
Eventually RAM was faster than ROM and starting with the first iMac they moved to having the classic MacOS ROM in a file that got loaded into RAM on boot.
I think Apple is coming back to that vey confusing model now with M1 macs needing their internal SSD to boot (effectively a part of the firmware) but a million times more complicated because of sheer code size and a giant security model