The cops were grossly incompetent, out of shape, spent 10 minutes panting after a 1 minute sprint, managed to mace themselves twice and then took it out on him by beating him to death. Every single one of them had at least 50 pounds on him, but somehow three of them couldn't manage to restrain him. And all he did was try to struggle and flee. The other cops who didn't beat him to death were joking about it later. One of them in the first interaction is hoping that they "beat his ass", and those cops are still on the force and not one of the 5 who are going to be seeing charges.
This wasn't a mistake, or emotions, this is training and group mentality. Cops in this country are just gang thugs.
And focusing entirely on race is missing the point. The race of a cop is 'cop'. And while black people disproportionately are on the wrong side of this, Daniel Shaver and Ryan Whitaker show it isn't exclusive.