A quick sampling has invalidated my assumption. It seems that Prosecutor salaries generally are set by law. For example:

Texas

Maryland

Virginia

Summarization of the job of Federal Prosecutor from vault.com

Idaho