Microsoft acquiring those companies doesn't really hurt competition.
Tech M&A (and particularly the list of examples you pick) is often driven by the desire to acquire talent, technology or capabilities that you don't already have, expanding the scope of the company. If you can integrate the acquired asset with your existing offerings, the theory goes, you will be able to create something greater than the sum of the parts.