More organic matter is preserved in sediments if there is high primary production, or the sediment is fine-grained. The lack of oxygen helps preservation greatly, and that also is caused by a large supply of organic matter. Soil does not usually preserve organic matter, it would need to be acidified or water logged, as in the bog. Rapid burial ensures the material gets to an oxygen free depth, but also dilutes the organic matter. A low energy environment ensures the sediment is not stirred up and oxygenated. Salt marshes and mangroves meet some of these requirements, but unless the sea level is rising will not have a chance to accumulate much. Coral reefs are very productive, but are well oxygenated, and recycle everything before it is buried.