How can gravitational lensing makes a quasar brighter than it would in the absence of a foreground galaxy?
The quasar gives out light in all directions. The light spreads out in space. Only a very small amount of that light would be pointed exactly in the direction of your telescope.
But if a large galaxy or galaxy cluster is between the quasar and us, it bends some of the light towards us, making the quasar brighter (it would also distort the shape, but quasars are too small for their shape to be seen) This makes it brighter for us (and dimmer in other parts of space which would have got the light that is now bent towards us.)