Share repurchases are also a way of returning cash-flow to owners. A stock buyback is equivalent to a dividend, just with automatic reinvestment in the default 'do-nothing' case.
Including buybacks, few large and mature companies fail to return profits to shareholders at all, and we'd ordinarily want growing or startup companies to retain earnings and invest.