You are overlooking location. The ideal place to grow crops is a place with great soil, good weather, a long growing season, and abundant water, but there aren't a lot of those. Of those four things, water is the only one that can be reasonably transported.
Data centers have fewer constraints. It should be possible to place more or all of them in places where water is abundant.