The version I first heard involved sailors and the rationale was that it was every sailor's dream to get as far away from the sea as possible and that the best way to do that was to become a farmer.