This absolutely does happen.
I got banned from /r/offmychest, for example, despite never commenting or submitting anything to that subreddit.
When I asked for a reason for the ban, I was told there is a tool that mods can use which will automatically ban accounts who "participate" in specific subreddits that the moderator deems "bad".
The rest of their reply to me was: "We are automatically banning participants in specific abusive hatereddits that have systematically harmed this support community."
Alongside /r/offmychest, I was also banned from /r/blacklivesmatter, /r/depression, /r/relationships, and who knows what other ones because I got tired of trying to find out. Literally never interacted with any of these in any way, yet I'm already banned from them...
>regardless of the content and context of your reputation
If they had bothered looking at the "content and context" of my singular, years-old comment then they would have realized I was actually criticizing the subreddit in question (and its users) rather than supporting them. Instead, I was preemptively banned from multiple communities.