Your post is not how things work, already built homes are grandfathered in. There are still houses with knob and tube wiring, balloon framed houses, all sorts of things that aren’t allowed any more by building code.
If a Toll Brothers/(any builder) has generic plan house blueprints that need to be updated to include the new code changes, they pay an architect to change the drawings to include the new code requirements, and then continue building that design of house.