Is being searched before you get on a plane or enter a customs checkpoint some kind of hideous infringement of your civil liberties? No!
There’s no problem with this in principle. The problem is that it’s silly, and it causes a privacy and security violation while not accomplishing anything.