Patents serve the same purpose in farming as they do elsewhere: it makes it worthwhile for companies to invest the hundreds of millions of dollars it costs to drive crop yields ever higher.
This rest on the assumption that the patent system is the best way to structure a market and incentivize agricultural R&D.