Most prisons, whether for profit or not, require money to keep going. The money ultimately comes from society via taxes. But the net effect is it costs society thrice to imprison a person: fewer taxes collected, less goods/services produced
and cost to imprison.