Waving off farmer's loan isn't bad economics. That the farmers are in a position so it has to be done is the bad economics. That the govts have failed to setup a system in place where farming is viable is the bad economics.
When the corporate loans are written off, the middle class quite don't see the same way. For them, the capitalists who represent "merit" and "competition" are allowed to make mistakes. Farmers are not.