And 9/11 happened to aircraft operating under FAA Regs which already prohibited passengers on American-registered aircraft from visiting the flight-deck during flight.
Our knee-jerk reaction was to introduce the same law for British aircraft even though, as had been demonstrated, it does nothing whatsoever to deter terrorists/hijackers.