someone managed to sweep the wings while the flaps were down
This can happen when a feedback shaft has been physically removed from the airframe during maintenance and somebody then does a wingsweep (function test). Because the High Lift Wing Sweep Control Unit will not know when the wings have reached the selection made in the cockpit and the wings will keep on motoring back and back and back. Then the flaps go through the side of the airframe.