In GTA 6, cops no longer magically know your identity and start chasing you the moment you commit a crime.
This is showcased in this clip, where the wanted level stars are displayed as hollow outlines, because the cops don’t know who the perpetrator is yet.
This occurs when an NPC calls the cops, but you execute the robbery fast and clean, then leave the scene before they arrive while keeping your face covered with a bandana.