The main cause is inconsistent settings, especially Steps per Unit, between the main and slave axes in Mach3.
Ensure that the motor tuning, microstep on the TB6600, and slave axis settings are identical; reverse the motor direction in Mach3 instead of swapping wires.
After synchronizing these parameters, both motors will run at the same speed and in the correct direction.