PbO and PbO2 react with HCl according to following chemical equations :
Why do these compounds differ in their reactivity?
Lead is present in +4 oxidation state and the stable oxidation state of lead in PbO is +2. thus it can act as an oxidising agent. Therefore, it can oxidise ions of HCl into Chlorine.