The quarter acre of manicured grass, the per-working adult car, the maximum occupancy limits, the minimum square footage requirements, zoning in general all work to keep the "riff raff" out economically.
Nothing about sprawl housing is efficient. Its almost maximally inefficient - you get the worst of everything, the traffic and congestion problems of density without any of the actual density because the people centralize on an urban core and surround it in extraordinarily wide expanses of cloned stick houses. But that inefficiency is baked in by design to push out those who cannot afford to participate in such inefficiency. You don't need gates on your community if the area is unlivable for the working poor for miles around.
I grew up in suburban New England. That's inefficiency - triangular acre lots, empty space with no road access, single-lane roads, three lefts that get you back to your starting location, driving to the next town (or New Hampshire, often) for the nearest commercial zone, the "Massachusetts left" because there's no protected left-turn lane at most intersections, major roads that terminate at a stop sign on a freeway where people routinely drive 85 mph. The suburban sprawl of Silicon Valley was a breath of fresh air by comparison - the lights on the 3-lane boulevards here are at least timed in rational ways with protected turn lanes.
Hell, they have traffic lights here - I grew up 2 houses down from the intersection of 3 state highways at a stop sign, and we fought for about a decade, fruitlessly, to get a traffic light and crosswalk there. It backs up for literally a mile in each direction during rush hour, and accidents are common.
This one efficient model you are talking about is merely the solution to one set of tradeoff decisions in your area, with other tradeoffs being chosen in other places.
I think the problem - in SimCity, Cities: Skylines, other video games, and real life - is that if you're building for aesthetics, there are many right answers, but if you're building for efficiency, there's only one right answer. The reason so many mid-size American cities have converged upon 1/4 acre lots with a road hierarchy, 3-lane boulevards, commercial strip malls on the boulevards, office parks, and freeways to link suburbs is that that's the most efficient way to satisfy the constraints of 2-3 child nuclear families who want privacy and a patch of greenery that's all their own and have varied destinations that each support too little traffic to be worth building mass transit to. The reason many megacities (I'm thinking particularly of NYC + Asian megacities like Beijing, Taipei, Hong Kong, Shanghai, etc.) have converged upon high-rise condominiums with street-level retail taking up whole city blocks with abundant bus & mass transit routes is because at a certain population density the suburban model ceases to work, and this becomes the only feasible way to move people to work & shopping. Interestingly, both models show up in Cities: Skylines, and the transition point between them is usually a painful inflection point in your city's development.