Why is photosynthesis considered an endothermic reaction?

Photosynthesis is considered an endothermic reaction because energy in the form of sunlight is absorbed by the green plants.