He robbed a place and just ran into a cop. He probably though they knew about it.
"OH NO! The cops know I shoplifted a 6 dollar pack of smokes!
TIME TO GET MY BLACK RAGE ON!
I'm not going to jail!
You'll have to kill me first!!!!"
Or, you know, the cop acted like a fool. Which has happened multiple times across multiple states this month. I guess some black criminal trying to steal a cops gun is more likely to you?