Public security is responsible for investigating and collecting evidence, especially confessions, and will also set traps for criminal suspects. Arriving at the procuratorate means that the police think they have caught the suspect.
In foreign countries, when there is no lawyer, the suspect can refuse to answer any questions, which is the reason.