They haven't actually been selling much. They patent-trolled google over some smartphone patents and won. Now they include the billions in revenue as "Windows Phone revenue". AFAIK they make more out of this patent trolling than from actually selling windows phones.
http://www.geekwire.com/2013/microsofts-newest-billiondollar...