Either it is part of the process for Capital Murder and Death Penalty cases are he is acting crazy in jail. I hope it is not the later one.
Art. 16.22. EARLY IDENTIFICATION OF DEFENDANT SUSPECTED OF HAVING MENTAL ILLNESS OR MENTAL RETARDATION. (a) (1) Not later than 72 hours after receiving credible information that may establish reasonable cause to believe that a defendant committed to the sheriff's custody has a mental illness or is a person with mental retardation, including observation of the defendant's behavior immediately before, during, and after the defendant's arrest and the results of any previous assessment of the defendant, the sheriff shall provide written or electronic notice of the information to the magistrate. On a determination that there is reasonable cause to believe that the defendant has a mental illness or is a person with mental retardation, the magistrate, except as provided by Subdivision (2), shall order the local mental health or mental retardation authority or another qualified mental health or mental retardation expert to: