Another way to say "farmland is used for growing food" is "Growing food is one of the primary functions of farm land."