Because the laws allow them to do so. Also, most police have to go through licensing procedures for circumstances which require dangerous driving in emergency situations.
The logical here is that those speeding are harmful to the general public, so the police has the authority to stop them from harming anyone.
Who the fuck asked this. You are a special kind of stupid.