Microsoft is a business; the sole and core focus of a business is to make money for the owners, the owners being the shareholders of Microsoft - this money is made by investing shareholder funds into R&D and product development, and then profits are made via sales of those said products.