Just an educated guess.
But no slides deployed so decided not to evacuate. Decision made to disembark via rear doors. So whilst there had been an "incident" the crew decided to action the appropriate after landing scan/procedure. Also this would allow any fire services better access to wheel/engine areas.
Hence flaps retracted and thus why flaps not in the 40 position.