Why do pilots lock the cockpit door? Changes were made to cockpit security in order to make hijackings more difficult. The US Federal Aviation Administration recommends that doors be strong enough to withstand a grenade blast. Also, they are usually left locked for the duration of the flight.