Unfortunately, a judge may get a kickback from a for profit prison: https://www.usnews.com/news/us/articles/2020-06-23/kids-for-....
It doesn't stop there. For profit prisons spend millions of dollars lobbying: https://www.opensecrets.org/industries./indus.php?ind=G7000
If you want to see intent, follow the money.