Why did Emperor Qin send the slaves to build the great wall?

Because slavery is a efficient way of getting mass projects done for cheap. No pay for the slaves and if something happens to them they are easily replaced. They also can be rushed to fit the need of the pace without objection. (Or God help them if they do object)