The very well could have been doing something wrong. But the difference is that cops are more likely to arrest or kill a black person over a white person. Sorry if you don't realize that. In general, white people can get away white doing stuff they arn't supposed to do more than black people.
EDIT: Also, racism isn't only an issue with our judicial system. There's also social racism, don't let me get started on that.