Nitro group by virtue of −I-effect withdraws electron from the benzene ring and decreases the charge density on ortho and para position as shown below.
Thus, electron density decreases at o/p-positions in case of −NO2 and, hence the electrophile attacks at comparatively electron rich meta-position.