The most accurate response to why members of the House Un-American Activities Committee (HUAC) targeted screenwriters, directors, and others in the movie industry is: They feared that they would make popular movies that promoted Communist ideas.
During the Cold War, there was widespread concern about the influence of communism in American culture, and Hollywood was seen as a significant medium through which ideas could be disseminated to the public.