Answer
Miller went to jail because he refused to comply with a subpoena to reveal the identity of a covert CIA agent in connection with the Plame Affair, a public controversy regarding the exposure of Valerie Plame as a covert CIA agent in 2003. His conviction highlighted the tension between freedom of the press and government's prerogative to protect national security and intelligence assets.