To create a funnel for all the air streaming towards the fuselage.
Slightly longer answer:
Air approaching a swept wing will be accelerated towards the area with the lowest pressure and, therefore, will be sucked towards the wing's center. The center itself will show a markedly different pressure distribution over chord than the two-dimensional flow over the same airfoil would because here the acceleration is much lower while the deceleration length at the end of the airfoil is compressed. If the swept wing has no twist and the same airfoil over span, a flow pattern similar to that pictured below will result:
In order to maximize the achievable lift at transsonic speed it is desirable to modify this wing such that the isobars will run along lines of equal chord percentage over the full span. To achieve this, several tricks must be combined:
- Make the root airfoil thicker at the front and thinner at the rear part.
- Do the reverse for the tip airfoil: It must be made thinner at the front and thicker at the rear part.
- Use negative camber at the wing root.
- In order to compensate for the much higher zero-lift angle of attack of the modified root airfoil, increase its incidence.
The last step is what causes the kink in the trailing edge. Of course, increasing the wing chord at the center increases this effect. In case of the A330 and A340, the incidence changes from +4.5° at the root to 0° between 30% and 70% span and -2° at the tip when on the ground and -2° at 70% span and -5° at the tip in flight.
Thanks to @ymb1 who found a very illustrative picture of the A330 (shown below, source) the root twist becomes obvious: The root airfoil has visibly much less forward camber (negative camber, actually) and, consequently, a higher zero-lift angle. In order to produce a similar lift coefficient, the center wing needs a higher incidence to compensate for this change in airfoil shape.
Another find by @ymb1 is this picture of Airbus root airfoils (source). The thick nose is easy to spot; it is needed to shift the suction area on the swept wing root forward so that the pressure distribution becomes more similar to the one of the airfoil at mid-span. Also, while the top has a long straight stretch, the bottom is rounded which in combination produces negative camber. The rounded bottom helps to maximize relative thickness. Since the chord at the center wing is increased, the local lift coefficient can be smaller than on the mid and outer wing and still carry the same circulation for low induced drag. What is saved in lift is added in thickness for structural efficiency and for stowing the landing gear. The lack of rear loading (= high local camber in the rear airfoil section) helps to gain the needed volume for the landing gear bays.