The first version of Microsoft made BASIC interpreters for any and every "home computer" that asked them to (and was willing to buy it). For a large chunk of the lifetime of the Macintosh, Microsoft was the largest Mac OS application developer, and cross-platform C++ tools was important for that. The Microsoft of "only one tech stack" is probably the outlier, more than the rule.