At a guess, your local farm is engaging in price discrimination. If you care enough about "buy local" to drive out to the farm to buy the vegetables, chances are they can charge you more.
I do wonder how often small farms hide price discrimination behind "economies of scale" though.