You've forgotten that we have a limited capacity for solar cell production and those solar cells are put to better use replacing coal plants than synthesizing something plants can synthesize.
But that was before solar and wind became substantially cheaper than petroleum.