There’s literally no other explanation for the constant stories of absurdly unwarranted detention of legal immigrants and even US citizens.
If you travel frequently over the US border, even as a citizen — and even as a white, native-borne citizen — you might want to consider doing so with a wiped phone and no laptop.