Nothing is stored in the cartridges. Like you said, the scores are probably kept alive for a certain amount of time by capacitors while the battery was being swapped. IIRC, it works the same way when replacing CPS2 batteries - if the battery suicides, then the board is gone, but you can quickly swap out the battery and with a fresh one, and be fine.