Half the officers charged over Freddie Gray's death were black. No one was less mad over it because of that.
The system can be racist even if its constituents aren't. It shouldn't be a new or unfamiliar idea to anyone here that complex systems can have unexpected outcomes, biases, and emergent properties.