Yes, criminals do criminal things, but normally we don't just execute criminals that are involved in bad organizations. Even criminals are afforded rights here and it is one of the things that makes this country so great. Having law enforcement decide that they get to pass judgement on criminals is an incredibly slippery and ugly slope. Without everyone getting a right to a fair trial, those that are innocent can be impacted as well (e.g.: this is why one of our founding fathers defended the british soldiers involved in the Boston Massacre [1]).
Why is it ok that law enforcement get to decide what punishment a criminal should receive? You don't think that has a risk of trending society towards a police state where law enforcement power is not checked at all?
Innocent people getting thrown in jail happens. Say the police give this type of public exposure to an actually innocent person and that innocent person gets convicted. Say a newspaper article reports on the lie that the given innocent person was cooperating with police and that article is read by a big audience. That innocent person runs the risk of being murdered in jail because they have been marked as a snitch by law enforcement.
[1] https://en.wikipedia.org/wiki/Boston_Massacre