Because a humanoid robot can replace (theoretically) any human worker, whereas a purpose-built robot can only replace one kind of worker. Or at least that's what Asimov said in Caves of Steel.