ICE is under enormous pressure to detain and remove large numbers of people. It is exceedingly likely that this is why they "mistakenly thought he was illegally in the country." I do hope one day the people in this administration responsible for the pressure face legal consequences for the lives they've ruined.
Yep, it seems that even "mistakenly-catch-and-release" boosts their metrics