Looking at the graph of speed and altitude, I suspect that just before 5 miles the pilots realised (finally !!) that they were not going to make it, so they raised the gear and stowed the speed-brakes to execute a discontinued approach.
uplinker
When you don't want to continue approch you don't retract the gear. First you change the flight path either by hitting TOGA or disconnecting the approach mode then select a vertical mode. Gear comes later. But the conduct of approach was so crazy we don't want to believe it. But exactly the same thing has happened before on the same date ten years ago 22/05/20010 AI Express 812 at Mangalore India. Only difference they landed with gear reversed and attempted a goaround hit an obstruction end of runway and crashed.