Why and how much do aircraft wings flex/bend (during turbulence)?

Wing flex of up to 25 feet have been observed but not all aircraft wings can flex so much. Military aircraft have low wing flex