We are a net exporter of food on a calorie basis, not dollar basis. In fact, couple of years ago our imports of food began exceeding our exports. (This involved a shift to importing high labor cost processed food products).
Now that the price of wheat and other basic commodities is skyrocketing, we will probably regain our status as a net exporter (in terms of dollars).
The only reason it is even a question is we are sweethearts and patsies. If we drove bargains half as hard as the oil producers, instead of giving away food free to anyone who really needs it, then the world would pay for all our imports and to spare, or it would flat out starve.