Answer;
Here are a few ways:
Bacteria in human intestines aid in the digestion of certain foods;
Production of cheese, yogurt, and other foods
Decomposition and recycling of dead organisms
Fixation of nitrogen from the atmosphere into useable nitrogen in soils
Production of antibiotics
Photosynthetic bacteria produce oxygen