It's because the airplane needs space to store computers and gear but also because the airfoil creates lift usually the bottom of the wing is slightly curved but the top goes and curves sharply up...
the wings of an airplane are made from very strong aluminum, and are designed specifically to bend and move up and down. reason being, is because when the plane is under high results of turbulence...