For an existing structure, the result of all these improvements, even considering rising energy costs, would never pay back over the expected life of the house. Code tries to strike a balance here by enforcing that when it's reasonable to do so (e.g. you tore down to the studs for a remodel anyway), you need to bring the areas modified up to modern-ish standards.
But old homes are expensive to rewire. And often, the safety benefits are very small. Current code requires a lot more outlets than older code, in part because many people overuse extension cords and tiny/cheap power taps when there aren't sufficient outlets, which is a safety issue, but is it worth spending thousands of dollars to pull new wire through existing walls, and then repairing the walls afterwards?
Some issues, are worth retrofitting for, and hopefully a pre-sales inspection by the buyer or insurance inspection will catch those. It would be reasonable to have a transfer inspection for those too.
Lots of paths to success here.
The egregious safety problems (eg knob and tube, fuses, Federal Pacific breakers) are taken care of by insurance companies. Or state laws that address the specific problem (eg septic, smoke detectors, etc). One can certainly have an opinion that something specific should be added to the regulations that apply when selling, but the out of touch comments here are far from informed.
Also some of the recent changes in the NEC are actually not beneficial to many people - eg the plastic gates in TR receptacles that tend to bind up and bend plug prongs, and shoddy overaggressive AFCIs running proprietary software. That you're generally left alone in the privacy of your own home without an inspector coming around every year and making you remodel is a feature, not a bug.
My old neighborhood has a bunch of 80 year olds with houses worth a million easy without any mortgages. You would think the banks would give them loans to fix things up. Nope, not a chance. The banks are waiting for them to die and make money off the next mortgage.
Sure you can - and you damn well should, especially for outright safety issues. What's the point of a building code if it ain't gonna be enforced?
> You know what people will do? Pass the buck to the buyer (Sold As Is).
Then give the buyer a grace period to bring the building up to code.
Reality simply doesn’t work this way. Just like we allow people to drive old ass cars that aren’t safe for the passengers but will pass emission inspections.