Answer:
because they are made of dead antibacteriol organism that are as a result of animal and plants decaying to form matter hence referred as composing layer
A rock can form from either sedimentation (things settling at the bottom of water, etc.) igneous (made from cooled magma) or metamorphic (created by extreme heat or pressure) hope i helped :)