Opening the grain trade ruins some farmers whose money is sunk in land. The fair fix is a duty on imported grain that shrinks each year, so they have time to move their capital. Keeping food dear forever to protect old investments makes as little sense as banning better machines.
From On the Principles of Political Economy and Taxation by David Ricardo