Given this paragraph about the movie 'The Bridge on the River Kwai', why did the writers have to work in secret?

They had to work in secret because they were on the Hollywood Blacklist for presumed involvement in the communist movement.