Why do federal and local governments pay private contractors to lock inmates up? The answer is surprising.