The prosecution represents the executive branch, they can drop the case at any time. He can tell them to drop the case. He has the power to do so and no one can stop him from doing that. They all in the end answer to him. The judges are independent, but it's the prosecution which brings the charges, and can drop the charges at any time.