This is especially interesting when it comes to comedians being fired for tweets/work they made in the past. I've heard it compared to being fired for ones current coding position because one has 10 year old code on their github that is trash / poor quality.
Of course, that seems absurd. But comedians are fired for jokes they made years ago when they come to light. Was the joke bad? Probably. By today's standards and the standards that we hold comedians to. But back then times were different and the joke may have been more culturally acceptable. Moreso they have refined their style and grown. As you said, they've changed.
It's incredibly frustrating because the shame culture only exists to eat itself alive. You could be a picture perfect person one day and the next be demonized by something you don't even remember doing from years ago.