Apparently a large amount of those fees are paid back to the prisons via "commissions", so it's basically governments auctioning off the right to take advantage of prisoners and their families.