Prisons can’t cheaply leverage the normal healthcare system. Sending someone to a dentist / hospital etc requires they remain unable to escape through the entire process which inherently adds overhead. Having healthcare workers on staff creates mismatches between their workload and the size of the prison population.