This is a phototropic response it ensures the leaves get enough light for photosynthesis in the leaves and food for survival.