Media coverage of the early years of the HIV epidemic contributed to the high level of violence against the LGBT community in NSW in the 1980s, an inquiry hears.