The incentives are perverse. Opening a prison in a small district can result in 75% of the population being prisoners, which counts towards census->congressional seats and for gerrymandered power. Some states somehow even keep you in the prison's district even after release, but I'm having trouble finding specific instances.