Dividends can have tax benefits for both the shareholders and the company giving them out. For the company, by giving part of their profits to shareholders, they won’t be taxed on that money, therefore paying less in taxes.
For shareholders, there can also be a tax break.