Could it have turned out that someone in the Ahmed Mohamed family was plotting something like this?
Yet reasonably following the “see something, say something” directive (where there truly was probable cause for suspicion and some sort of ensuing investigation just to see if there was anything going on, and, on the discipline side, to teach the kid a lesson about not provoking people’s fear for a prank) brought social punishment.