The hydrogen peroxide provided by the pharmacies are very diluted down. I really don't think it does much damage though stronger concentrations could cause scarring in the ear. You will see recommendations both ways
I think what it does is clear out the new bacterial infections before they can start developing in your ear. But I'm not too sure.