A lot of work goes into making a movie or a TV show. And sometimes, that kind of work means that members of the cast and/or crew might end up butting heads. Or, they could be excluded, fired, or re-hired.
In these shows and movies, plenty of behind-the-scenes drama took place, which ended up changing characters and plotlines (or, creators and actors added little nods or jokes to address the drama).