There are circumstances under which custodians can be prosecuted for violating their responsibilities as custodians. See AS 09.50.010 and AS 11.56.758. The issue of bail has many elements. Among other factors, there's a constitutional right to bail (a corallary to innocent until proven guilty), appellate court rulings and statutes set out when pre-trial release must be allowed, it's legally impermissible to impose criminal penalties for strict liability offenses, human beings are unpredictable, judges can't foretell the future, and keeping people in jail is extremely expensive in a time of stretched budgets. This 2016 Pew report explains the financial factors in Alaska quite well: http://www.pewtrusts.org/~/media/assets/2016/12/alaskas_criminal_justice_reforms.pdf