Garden compost is created by billions of microbes feeding on organic matter. That's what decomposition is - bacteria, fungi and invertebrates doing what comes naturally and munching on tasty (to them) bits and pieces, breaking them down to their base nutrients and compounds.
The resulting matter, called humus or compost, is rich in goodness and perfect for use on the garden as organic matter or soil conditioner.