Original: They usually only become involved in a criminal case once a suspect has been identified and charges need to be filed.
Simplified: A prosecutor represents the state in a trial and tries to prove the defendant did a crime.