Ricci flow helps in understanding the shape of the universe by smoothing out irregularities in its geometry over time, allowing mathematicians to study its structure and topological properties in a simplified manner. It effectively reveals the universe's global geometric characteristics, aiding in the investigation of its overall curvature and topology.