Dear student,
As the name suggest, compost pit is a pit to prepare compost.
Compost is the manure made from household organic, bio degradable waste made by fermentation by natural bacteria present in soil.
A pit made in ground in which organic waste is put with some quantity of water to make manure, which can be used as fertilizer. This is called compost pit.
Regards