They are given those rights by the public. But the public seems too frightened to take them back.
Compared to cops such as these getting black-bagged by the people, legitimate punishment by the courts is much safer for them, and for their own sake they should take advantage of it.