The short answer is "ask the attorney WTF happened". If what you are saying is true, the attorney dropped the ball, big time. But, most times there is another side of the story. The prosecutor probably presented some alarming fact-based theory where evidence or affidavit has given them the tool (with the magistrate) to get a no-bail hold on an individual.
Thank you for trying AMP!
You got lucky! We have no ad to show to you!