Only because a police officer is the outward representative of the law. They are there (theoretically, at least) to help protect the rest of us from the criminals. Those who would kill the police are a bigger threat to the rest of society than almost any other criminal.
And killing lawyers can almost be considered a public service anyway. (Just kidding, all you lawyers out there. Don't sue me for bad jokes.)