Wouldn't it just be cheaper to give them healthier food? At least it is the common sense medical advice: "you don't need vitamins, just a healthy diet".
I'm guessing a third party has a fat contract to provide bad food.
https://thinkprogress.org/in-alabama-prisons-the-less-sherif...
[0] https://www.hopkinsmedicine.org/health/healthy_aging/healthy...
You also need sun (Vitamin D), which is not always an option for prisoners kept inside for 24 hours per day.