Indeed, sometimes people are arrested and charged and are later found not guilty.  And some of them won't get bail because they're considered a flight risk, so they wait in jail.

The difference with this woman is she wasn't accused of any crime.  She was a witness.