The money would have been returned as dividends instead. For-profit companies are not intended to exist just to spend all profits on themselves (although Amazon is one obvious counter example amongst many).
Or paid as dividends? Stock buybacks are in part a way to financial engineer around dividends and capital gains being realized and taxed differently.