Hello Student
On roasting sulphides are partly converted to their respective oxides. Since the oxides of lead and mercury are unstable, these bring about the reduction if their respective sulphides to the corresponding metals.
PbS + 2PbO → 3Pb + SO2
Unstable
HgS + 2HgO → 3Hg + SO2
Unstable
However, zinc oxide is stable and it does not reduce ZnS to Zn.