Farming is an attribute. The higher it is the higher the quality crops you will harvest. For long term farming, you will want to use the higher quality seeds as they will give higher quality crops later on.
The equation for quality is (seed quality + farming skill + (random -5 to 5) )/2 rounded down (need verification).
Can be increased by wearing a Straw Hat