The purpose of using rare earth dopants in semiconductors is to improve their electrical properties.
From Wikipedia:
"SnO2 crystallises with the rutile structure, wherein the tin atoms are six coordinate and the oxygen atoms three coordinate. SnO2 is usually regarded as an oxygen-deficient n-type semiconductor."
Doping with cobalt and manganese, leads to the formation of oxygen vacancies. This behavior increases oxygen diffusion at grain boundary, promoting SnO2 densification. These dopants added to SnO2 are very active to the promotion of SnO2 densification. However, the compound obtained is very electrically resistive. In order to improve the electrical conductivity, other rare earth additives such as Nb2O5 and Ta2O5 are used in doping SnO2..
the incorporation of metal atoms introduces more sublevels into energy hierarchy which permits more allowed electronic transition to take place and hence a enhancement in the properties