the explanation is actually quite difficult to google.
"why are plants green?" -> because chlorophyl
"why is chlorophyl green?" -> because it reflects green and absorbs everything else
okay, you have to search:
"why did plants/chlorophyl evolve to be green"