I spent time as a court reporter and was amazed at how many prisoners would be transported from remand prisons just so they could appear for a few minutes before a judge.
The court taker would call the names of these defendants and they would be fetched from the holding cells and brought into the dock before the judge. These were simple remand appearances where nothing of significance happened.
The police and lawyers would say what they needed to say and the judge would remand these prisoners to reappear at another date. They would then be escorted from the courtroom and taken back to prison.
These appearances are, of course, important.
They are important steps between someone being arrested and accused of a crime, to them being convicted or cleared.