Minecraft merch is massive as mentioned by the other commenters. They get a flat licensing fee, as well as likely a cut of sales. Minecraft branding is all over the place for kids.
They never cared about the money the game made, as it likely is a very small portion of the annual income for Mojang. The brand is what’s valuable to them