Reason for doping of impurities in semiconductors is to
Increase the conductivity of semiconductor
By doping impurities into semiconductors, depending on the valence e− of impurities, either holes or free electrons are formed. These electrons and holes act as carriers for electricity. So conductivity of semiconductor increases.