To an optical device, like a camera, there is little difference between an airplane at 20000 ft and the Moon at 384400 km (238855 mi). The aperture of the lens is far too small compared to the distance of either object. Focusing on either object will make the other object in focus, too.
Flat-Earthers claim that because both objects appear in focus in a photograph, then the Moon must be close to the airplane. In reality, both can be considered at infinity. And it will be easy to make both objects to be in focus simultaneously.