Compost and peat moss are added to soils for similar reasons, but the addition of compost provides a lot more nutrients to the soil.