What does photosynthesis produce food for?

It produces food for the plant to use. Nature then produced creatures that use the plant as food.