Two different companies, two different philosophies.
Apple board did not push out Tim Cook, he's retiring. By every measurement used for CEOs, he's been wildly successful, no one was pushing him to leave.
Likewise, with Satya Nadella he's been incredibly successful as CEO of Microsoft. The company is worth more then Apple and nearly every aspect of his tenure has been marked with high profits and good decisions. The one thing that may drag him and MS down is their investments into AI, that is the biggest concern and question mark for Apple moving forward.
Also Microsoft is primarily considered an enterprise and cloud computing company, rather than a pure consumer company. So any decisions thy make with windows is largely with that perspective.
This is like a year or two old but its still accurate enough:
View attachment 2623767