The poor ranking of the United States (17th) is mainly because of the number of journalists arrested or imprisoned there. Arrests are often because they refuse to reveal their sources in court. Also, since the 11 September attacks, several journalists have been arrested for crossing security lines at some official buildings.
In the USA, a reporter who is a witness to a crime can be compelled to testify. Just like everyone else. That's the way it ought to be.