Farmers have poor leverage on produce retail prices, and depending on the soil and climate they have, the local markets and distributors, a limited range of crops is available. Once chosen, they simply maximize yield.
As for permanent crops, farmers simply maximize yield.