You're still thinking of WotC as "a publisher who sells D&D books".
In reality, it's closer to "the owners of the D&D IP, who will make their money off of novels, board games, video games, and movies, and who maintain a token pen-and-paper RPG line the sales of which they are mostly indifferent...