Inmates plant, care for, and harvest the crops. Then, the fruits of their labor are donated to local food pantries.
Nobody appears to be profiting off their labor and there's no mention it's forced. So it looks to me like volunteer work going to charities. A productive use of time, prisoner or not.
I have a lot of problems with prison labor but this isn't one of them.