They tried to get a foothold in mobile (even bought Nokia’s mobile phone business), they just didn’t succeed.
Given how long Windows CE was around and then whatever they called the subsequent mobile focused OSes, I’m sure they did care while they still had a shot, but Android ate their lunch. Probably deserved to IMO, in the limited mobile development I’ve done Android was an easier platform to develop for.
10-15 years later, Microsoft is adopting Android for a Surface device.