Regardless of what you look like you need to carry identification.
Driver License, military ID, state ID, passport, etc
Here's an idea.
Rather than complain about a law, how about coming up with a solution of your own?
Did you know, in Japan, police stop people who look foreign just because of that?
Nagoya G.A. - From Sweet Tea to Green Tea - Journal
It's simply a security protocol.
It's just a heuristic.
In the case of computers, you have things like malware.
Your firewall controls access into and out of your computer.
Your anti-virus scans everything to ensure they are okay to be on the computer.
So, again, please tell me how you would handle the illegal immigration in the United States.