Spending cash on share buy-backs boosts earnings per share immediately, whereas a capital-investment programme may actually reduce earnings in the short term.
The companies with the strongest balance sheets will likely buy back their own shares, which is good for equity holders as buybacks mean more demand and more demand for equities means higher share prices.