Could change but I think Bill Gates originally tried making money selling a version of BASIC. Never made much money[1]. Since then Microsoft doesn't try to make money on dev tools. The dev tool business is there to support Microsoft's internal needs and to promote the Windows Platform.
[1] Bunch of companies tried selling compilers with 'drink your milk shake' licensing terms in the 80's. Developer resistance, Microsoft and Borland killed them off.
[1] Bunch of companies tried selling compilers with 'drink your milk shake' licensing terms in the 80's. Developer resistance, Microsoft and Borland killed them off.