What's the distinction you're making between "state" and "judiciary"?

Traditionally, in France, l’État (likely translated into "the state" here) refers to the national-level executive branch.

The procureur is part of the executive, and thus represents, and is directed by, the government. The other is independent from the executive, as part of the judicary branch.