What if the AI was integral to the design and manufacturing processes of all the airplanes, which is a much more likely path?
Then you can see how it gains 'control', in the senses that control matters anyway, without us necessarily even realizing it, or objecting if we do.