The presence of the security (so called security theater by some) creates a situation where these crimes can no longer easily happen.
Terrorists (home grown or otherwise) cannot just walk on the plane with a bomb.