When discount points are paid, the bank collects a one-time fee at closing in exchange a lower mortgage rate to be honored for the life of the loan.
The banks consider this payment to be "prepaid mortgage interest". Meanwhile, mortgage interest is tax-deductible for eligible tax-filers so, for many mortgage borrowers, there's a tax advantage to paying discount points.