Because the problem that caused the landing gear to fail to retract could have been caused by an electrical short and that would lead, potentially, to a fire. Plus leaving the gear down that way puts additional stress on the aircraft (because of the drag it induces) and makes it harder to control.