God mode for example, that allows to fly through the map, is the OG of fast travel.
Nowadays computers are so powerful you can have full blown editor doing essentially all the cheat codes, but back in the day, you'd want to be testing the construction of X, something you don't have money for, so you'd press a few keys to change hex values and you'd have (maxvalue - current cash) instantly, so you could test more effectively.
Cheat codes would be hidden enough that regular players wouldn't find them but not impossible that players could use them.
I think the logic is, you've paid for the game, you should be able to access all the content.
Nowadays, since games are such big business, it's all too serious.