The curfew was ordered by the mayor, an elected official (LA in the case of the video you linked), not the police.
It used to be more common, but most places switched to appointment by the mayor or city council or city manager. Now it is mostly just a handful of scattered cities in a few states, with the exception of Louisiana where I believe they are still mostly elected.