Games that didn't have saves or passwords weren't that long. They were short enough that they could reasonably expect you to do it all in one sitting once you git gud, but the process of gitting gud was the game's longevity.
If developers didn't expect you to do it in one sitting, then they would add some way of saving progress.