Computer control of farming decisions such as watering and fertilising. Link that in with insolation and wind prediction to minimise waste or maximise productivity.
This happens in the cloud thanks to insolation prediction being tied into wide-area networks of solar farms.
More such networks evolve independently, then one day some bright spark realises that prediction and control in domain X can be combined with control and prediction in domain Y to produce greater efficiencies.
Linking reproductive health and food production to maximise water savings, for example.
Next thing you know the computers decide that human population is best maintained in the order of hundreds of millions rather than billions.
And then we find out that Terminator was actually propaganda from the human rebels who didn't like the computers telling them not to breed, and the nuclear war was Skynet protecting its desired humans from the rebels, not protecting itself.