The Skype purchase was good for itself. It lead to Teams, which is dominating.
This is a win from Microsoft's perspective. They don't have to have the best group messenger around, but having a significant office product being dominated by another company would be a massive risk to Microsoft, and Teams has prevented that.