That's pretty much what they're doing. But the apartment that probably requires driving 30 minutes (or 1.5hr train) to work is worth a lot less than something in SF.
Edit: SF itself does have strict zoning. But even if everyone there wanted max density, so they tore everything down and built skyscrapers instead (ignoring the soil problem there), it's a fixed supply of land.