As long as people buying WP devices are using Google search, or visiting websites that use Google's ad network, Google is making money off of WP, even if they aren't holding WP manufacturers to ransom over dubious patents.
Or like music players (instead they let Creative license the OS/audio+video software). Or like Media Center: great software, but PITA to setup, no simple OOBE like Apple TV, now it's been EOL'd.
Microsoft had over 80% of the smartphone market before. They are well aware of the Android OEM strategy. But I don't think anyone really LOVED their Windows CE mobile devices, so they know they needed to do better this time around. Just like most of the Android phones are crap and Google is now trying to clean that up.
It's just a name.