They do not fly actively: their fins do not flap. What they do is speed towards the surface and keep on going. When they leave the water they glide, sometimes for a surprising distance. It is generally thought to be an adaptation which helps them escape predators.