Flow detachment is as serious as it sounds. To stay aloft, airplanes need slow moving air underneath the wing ... which can lead to a stall and make the aircraft harder to control." ...
The front flaps interact with the turbulent shear layer, keeping it close to the wing surface, while the rear flap create a “pressure dam” that prevents high-pressure air from moving forward.