Habeas corpus
The legal term habeas corpus translates to "show the body".
The Magna Carta that English barons forced King John to sign, introduced the guarantee of some of the civil rights taken for granted today. In particular the Magna Carta introduced provisions to go to a judge and demand the state provide reasoning as to why an individual was in custody.
The legacy of this aspect of the Magna Carta remains, throughout nations whose laws trace to English law, including the United States. This legacy means that the executive branch of government cannot arrest and detain individuals unless there is a good reason to believe they can be charged with a crime.
The level of evidence the state is required to produce to justify detaining someone is lower than the evidence required for a court to convict an individual.