When I wrote Basic programs for my TI-99/4A, they were gone when we turned it off.
When we typed in longer programs on an Apple II (from magazines), we eventually learned how to save them as files on a floppy disk.
It’s the same. https://x.com/jxnlco/status/1901702040587501873