In most countries state prosecutors are directly controlled by the executive. The US is a bit of an anomaly in having semi-independent elected prosecutors. The government wouldn’t normally get directly involved - the optics are terrible - but in high profile political cases they will.