Emergence of spatial curvature