This can happen with any app even if it's more unlikely.
It's definitely not good for the company caught on the receiving end of such a decision, of course, but the hosting company is optimizing for themselves, as all companies are inherently selfish. And given how much racist garbage Ruqqus is hosting, I don't think Heroku cares too much about any hardship incurred.
Opening the front page of Ruqqus shows a lot of content actually objecting to racism, for instance, this post:
https://ruqqus.com/post/31lq/their-goal
which highlights and objects to a tweet that says:
"Why should there be a place for white people in our better world? As long as white people are around, they will continue to make our better world impossible. BIPOCS are the ones who are in this together. White people are not welcome or needed."
This kind of racist rhetoric is rampant and easily found on places like Twitter or Reddit. Scrolling through the content on the Ruqqus front page I didn't see any racism. I did see a lot of angry posts about BLM-linked violence and anti-white racism, but that's the sort of thing people are theoretically meant to be angry about, isn't it?
This problem happens a lot with reddit competitors whose selling point is they don't "censor" (e.g. Voat). What happens is the people who are so extreme they got banned from reddit end up on your platform, and these people are generally pretty terrible. Next thing you know you're hosting a predominantly far right racist discussion forum and your hosting provider wants nothing to do with you.