Allowing the wings to flex improves aerodynamic stability. The aircraft is more streamlined and experiences less drag. It helps provide a smoother ride for passengers and minimize turbulence. The 787 fly-by-wire technology also helps here to automatically raise or lower the wing trailing edge during the cruise.