Because writers don't fund movies and tv shows, and are almost always left out of the decision making process for what elements need to appear in the story.
So the problem is that writers don't write the scripts? I know directors don't actually direct them since there often is director's cut, that is supposed to reflect better the intentions of the director.