These are photosynthetic algae that provide nutrients for the polyps while themselves benefiting from a safe environment and an elevated, sunny position.