They weren't born with an automatic knack for flight. Dinosaurs with the ability to fly were not actually born natural-fliers, including pterodactyls.