This is because nitro group (−NO2) at o/p positions withdraw the electrons from the benzene ring which facilitates the attack of the nucleophile. The negative charge in the carbanion formed at o/p positions with respects to halogen atom is stabilized by the presence of nitro groups (−NO2) and resonance respectively.