Nuclear spins precess at slightly different frequencies (inhomogeneous broadening). A 180° refocusing pulse reverses the dephasing — the spins "rephase" to form an echo.