This is the absorption spectrum of chlorophyll, the pigment responsible of the green colour of plants:
...
Our eyes have not evolved to allow us to recognise the functioning of chlorophyll in plants, because our ancestor did not need to do that. They have evolved to allow us to see the differences between leaves and berries (which a lot of animals cannot), because that was useful to our ancestors.
Maybe this is related to the surprising appearance of leaves and such in infrared photography, which can create huge tonal differences that our not-so-literally-accurate vision system completely lacks.
On "a lot of animals cannot", I believe that many or all carnivorous mammals are color-blind, which fits with that
who cares about berries and leaves? evolutionary scenario.