A lot of racism and ethnic profiling is exactly like this -- actions that are individually justifiable, but somehow end up focusing on a particular race or ethnicity despite everyone "not meaning it that way".
Focusing on intent can help us feel better about ourselves when we unintentionally contribute to these problems, but if we actually want to fix them, we can't focus only on the intentional racism or intentional ethnic profiling. We have to understand and find ways to avoid the unintentional stuff too.