If it's just a surface scratch it fills it in (temporarily), and I suppose it refracts the light in that area in such a way as to make the scratch less visible. Obviously, if the scratch is very deep or a large area of emulsion is missing, then it doesn't work so well, but for the usual kind of light scratches on old negs that would show up with a condensor enlarger, it works.