America is pretty much the only country with elected prosecutors. Everyone else considers it a career position, and then incentives are different.