Games that had non-password save options had a battery inside which allowed the cartridge to store the save data when the console is powered off. See a picture here: https://www.dkoldies.com/product_images/uploaded_images/nesgamewithbattery.jpg
This holds true for other cartridge-based systems like the SNES/N64, Sega Genesis, etc.
Latest Answers