1. Farmers vote. And, Farmers live in states where the value-per-vote is high under both state-vote balancing, and gerrymander. Farming is politically useful.
2. Food is part of national security. It's sensible to keep the sector working.
3. Consumers hate variability in food pricing. So, general sentiment at the shop is not in favour of a strong linkage of cost of production to price, and under imports, there's almost always a source of cheaper product, at the socialised cost of losing domestic food security: Buy the cheese from Brazil, along with the beef, and let them buy soy beans from China and Australia to make the beef fatter. -And then, you can sell food for peanuts (sorry) but you won't like the longer term political consequences, if you do this. See 1) and 2).
I agree with you that the food supply chain is vital to (any country’s) national security, but I don’t think anyone with any real power takes this seriously.
America has a surplus of soy beans, it’s China that needs to import from us or Brazil. The mess farmers are in now is that China has decided Brazil is a better source for them given the current trade war going on.
China actually imports a lot of food from us, they seem to be the biggest consumer of chicken and pork feet, for example, which we don’t seem to have much use for. The current subsidies are because that export trade, which farmers have depended on and invested in, has basically disappeared now.