Airplane hijackings and bombings used to be a relatively frequent occurrence. One can argue that the security is not worth the loss of freedom (e.g. not being able to bring a gun on a plane). But it doesn’t seem to follow that the security is merely theater.