Ticket quotas are explicitly illegal in some states[0]. I would imagine arrest quotas would be legally similar.
It's somehow considered acceptable - as in not a fireable offense - for police officers to not do their job or to prevent the prosecutors from enforcing the law.
Because police as currently operating in large portions of the US are not meaningfully different from gangs. Only they are even less likely to suffer consequences.