It does this only because the market thinks that management thinks the shares are undervalued. If things are "efficient" then a buyback and dividend are equivalent Conversely, if shares are overvalued then a dividend payment is better for management.
At any rate, the relevant thing to compare Microsoft's investments to is the opportunity cost of the money. If Ballmer spent ten billion dollars on a project that netted only a 3% ROI, then shareholders would have been better off receiving that money and putting it into other companies.
Dividends are taxed at the same rate as capital gains, so it should make little difference to a shareholder if a company paid him 1000 dollars or raised the resale value of his stock by 1000 dollars.
No, because your forced to pay capital gains early thus having less money to compound. Try simulating it with 10% growth vs 5% dividend (which is used to buy the same stock) and 5% growth for 10 years.