The court system is supposed to be public. That does not automatically mean that cameras are allowed, but it does mean that hearings and trials are supposed to be held in open court, for all to see. Prospective witnesses are excluded because we don't want them to hear the witnesses before them, and conform their testimony. The clients, of course, are allowed in the courtroom.
Certain hearings and trials are closed to the public; for example, cases where children are involved, or other sensitive matters. Often these are heard in judge's chambers, out of public view.
But yours doesn't sound like one of those. Sounds like you should have been privy to the proceedings. Inquire further.