It's not "hardcoded into the game".
See: Emulators
Old games are set to their original resolution when played on new systems because - shocker! They look best in their original, intended resolution!
All you get from upping the resolution of old games is a lot more clarity on the horribly low-poly models and horribad textures which are normally covered up nicely by the low resolution.