That could be because:

a x (b x c) /= (a x b) x c

That applies to a dot-product but not a cross product, since

a x b = - b x a