And yes, for some reason society/civilization has a "market based" approach to food security. Why? Because it works better than the planned economy version. Maybe because it forces people to optimize, to make the hard choices of what do you really want, do what you're good at or do what you love.
That said, markets are not in a vacuum, so we can and we ought to help people. Not just farmers. Because every time we try to help them we end up helping "Big Agribusiness". And if some people want to do farming, but it doesn't make them enough, okay, we can think about that, but I don't see what that has to do with food security, which comes from big industrialized farms, environmental protection, land management, food safety regulations, distribution chain tracking and inspections and so on. (To help small farms, you need scale. You need to pack them densely, have them share equipment - usually the combine that used only at harvest is owned by a 3rd party, and so on. They need insurance for climate events like against flood, hailstorm, tornadoes/hurricanes, spring frostbite and so on. So you end up running a farmer-K12.)