Zoning is about 100 years old, and it's not the reason Manhattan doesn't have enough groceries. And ultimately, market forces almost always win over regulations.
Reformulate the question: why do people tolerate living in dense tiny apartments, without easy access to necessities like childcare and grocery stores?