Not entirely true. Cops are fired, penalized, and held legally accountable quite often. Not frequently enough but you’re stating that they are immune.
Qualified immunity protects state and local officials, including law enforcement officers, from individual liability unless the official violated a clearly established constitutional right.