iMovie exports the final video at the correct resolution based on the device from which your clips were captured
How iMovie knows type of device?
I recorded video using iOS 11 and iMovie is trying to export it with 1920x1080 resolution while original video was 1920x1440.
Why?