Or maybe they are "arrested" for safekeeping

In general, yes. Also my understanding that material witnesses are arrested and detained so they don't disappear, especially if they are foreign nationals or there is reason to believe the person(s) might otherwise make themselves scarce so as not to get involved.
Or so I understand.