There are regulations, and regulations. Those regarding, say, fire safety are pretty important and worth it even at the cost of productivity.
Zoning, on the other hand, that keeps corner stores, apartments and condos out of some neighborhoods... that is a huge problem and doesn't really exist for safety reasons.
Even fire safety is frequently done in an overly onerous and ineffective way, e.g. the double staircase requirement that doesn't apply in many other places because other, more space efficient solutions were found.
I have a friend who is putting in a temporary tent structure for a party on top of a swimming pool. Fire Marshal said it must have a sprinkler system...