You're confusing zoning with HOAs and or developers that restrict building in some neighborhoods. You are wrong about government doing that. Zoning tells a land owner of allowed uses, like single-family vs multi-family, or density (number of units per acre). The market is driving sizes of homes that builders develop.