Yea, if you could get $22,000 just for being detained in the US, there would be whole professions dedicated to setting people up for crimes while also leaving enough evidence of their innocence to get them acquitted.
I would rather have a system that people not in a position of power can abuse (setting up systems to get intentional "wrongful convictions") than one where people in power can abuse it (the current bail and prison system).