Were there other cavalry on the other side of those infantry? Perhaps light cavalry with bows in the back? They randomly acquire -any- cavalry unit as target, and run straight to them, attacking anyone in their way. It can be a little annoying, but we all get the same odds, so it works out.
