When the ground subsides it can become lower than the surrounding terrain, forming a basin.
Since water, which carries sediment, flows downhill, sediment will collects in these basins.
If enough sediment collects, compaction and cementation will turn it into sedimentary rock.