Photosynthesis considered an endothermic reaction

Why is photosynthesis considered an endothermic reaction?