A share buyback is an alternative form of distribution to Shareholders, whereby a company buys back its own shares on the market (and then cancels them). This reduces the number of shares in circulation and increases the proportional rights of each individual share.
Thus, for an equivalent level of earnings, earnings per share is increased thanks to the cancellation of repurchased shares, which directly benefits Shareholders wishing to commit long term alongside the company.