Robot labor isn’t free. You pay in capital costs, energy costs to run them, and ongoing maintenance costs if you use them a lot. Environmentally, these costs might be more or less than the chemicals they replace, but it isn’t am obvious comparison.
Changing farming methods along with automation might work better, like vertical farming techniques.