I think the core reason for their success is a deep understanding of the problems their core audience - gamers - was facing. Gaming is organised in communities, and it was built around that. It solved multiple issues for them, mostly - it made interacting fun and easy. It supports emoji, is meme and web-friendly, organising to play games together is made easier, you can see who's playing what, built-in voice-chat, moderation, ... Barrier of entry was also very low, you could just use the web-client, no need to install. But it also works on mobile, which makes it work for console gamers too.
Until discord came along, you could do all these things by combining different tools, but never as good, and having to deal with multiple tools made the barrier of entry way too high. When I was younger, a gamer had to be someone somewhat technically skilled. IRC, ip addresses, dedicated servers, ... made it all a lot harder to get into. Gaming however is very mainstream these days, and it keeps surprising me how small the the average gamer's technical knowledge is. And that's no a bad thing imho, gaming in the end is something to be enjoyed, no need for gatekeeping.