Hate crimes take into an account the desire to harm an entire community as well.
You examples are isolated. A hate crime isn't.
Hate crime is still defined by the viciousness and conviction in which they are committed. They are, almost invariably, always more violent and sadistic.
These distinctions separate them from opportunist or isolated attacks.