Earlier quoted context omitted.
No, not even remotely the same. The old house was up-to-code, and considered safe for habitation, when it was built. Your new house was not. Very importantly, if you renovate an old house, regulations may require you to update the house to modern building code standards for plumbing, electricity, etc.
Yes that's the scam. Magically the houses are not held to the same code. Got mine, fuck everybody else.
Old houses are held up to the new code when they are renovated, because updating old houses to the new code frequently requires rebuilding substantial portions of the house to comply with new requirements. It's not about "fuck everyone else." It's about recognizing that the extensive work that would be required to comply with substantially safer modern codes is best done when substantial construction work is already planned to be performed.
Commercial buildings are held to up to new codes whenever ownership, or tenancy, changes hands.