They had BUCKETS of funding from wizards of the Coast for this. They also had a massive studio with more than 400 people working on it.
They had the IP; they did not receive a single cent from WotC. They funded the game with money from their previous games, and in fact, they paid WotC for the IP.