Probably because IRC is an outdated protocol with inferior features to Slack and very few good open source options for connecting. For example:
* DCC is still unreliable.
* There is no audio connection option, which is quite popular in 2018.
* Channel history management is ad hoc
* Authentication is done in band, in plain text.
* "secured" channels rely on this bad authentication, and if they don't (perhaps electing to manage it themselves) network flaws can completely steal your channel.
* IRC isn't even particularly open source, many servers and networks have private patches that are not shared publicly.
IRC isn't better than slack. I agree with you that it's confusing why people suggest that it ought to be.
Also, most IRC networks are controlled by entities even more inscrutable than Slack's executive team and board. I can go look up who runs slack, I cannot actually find good details on who runs any given IRC network. I have no idea what I'm dealing with or how they're using my data. I have no legal recourse if I do discover bad behavior, and I'm forced by the ossified protocol to keep using their insecure authentication mechanisms which make abuse trivial.