It happens when wet soil is walked on, machinery passes over it or bare soil is left under rain, which forms a crust. Water pools on top and roots stay shallow.
It is avoided by not treading on beds (which is why they are made narrow enough to reach from the path), adding organic matter and keeping the soil covered with mulch or green manures.

