Because it's in the national interest to not let them go bankrupt (because without food you die).
Its not, famines are a real thing and many people die from them. They only way money can prevent famines is by making farmers grow more food last year.
So its just as important to pay farmers with government money to keep growing food as it is to pay hospitals to keep treating people.