Plants make their own food using photosynthesis, which is important not only for the plants themselves, but for the other organisms that feed on the plants.
There is an inverse relationship between distance and light intensity, meaning that as the distance from a light source increases, light intensity decreases.