From what I understand is was more because Tumblr had a much younger user demographic with very ineffective content reporting tools. Allowed NSFW content without a desktop opt-in function. And also being bought by Yahoo who wanted to cash in on Tumblr advertising probably played a huge role in it too.
Twitter skews older, requires desktop opt-in for NSFW content, and (before Musk) had decent content reporting functions.