There isn’t just one set of building codes for every jurisdiction, different jurisdictions adopt various sets of code.
Different geographic regions require various things that other areas don’t require. My state doesn’t have earthquakes or hurricanes, but we do have to have stronger roofs for handling snow load. Buildings in Florida need specific methods to handle hurricane force winds. Buildings in California need specific methods to handle earthquakes. And so on. How a building is designed is highly dependent on where it is located geographically.
You’re also underestimating just how many different materials/fixtures/fittings get installed in a house. Plumbing fixtures and light fixtures, electrical wiring devices, floor/wall/ceiling finishes, doors and door hardware, siding (type, color, trim color), windows, woodwork, cabinet, cabinet hardware, countertops, bathroom vanities, appliances, rain gutters, garage door, driveway/sidewalk material and color, deck material and color, etc.
I guess what I’m trying to say is that designing and building a building is far more complex than it seems.