It's amazing how so many people here have no clue how building codes work. There's a new version of the NEC released every 3 years. These are physical systems, not continuously deployed software being pushed to centrally-controlled surveillance company servers. They're building codes, not
occupancy codes. Building codes are focused on making sure big jobs with a lot of money/effort have sane defaults, and weren't skimped on to save a few percent. A house built X years ago is still an X year old house, and everybody knows it.
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.