So he has been held in jail for the last five years and still hasn’t made it to trial yet for his past charges.
He could be on an appearance writ from the state system for other charges, or going through an appeal process. Lodging state prisoners in county facilities is common if they’re needed in court for more than a couple days.
CC