Their unions or employers can provide attorneys as a condition of employment.
Ask a Chicago cop how well that works.
Which Chicago cops have suffered wrongful civil or criminal penalties?