Swapping the X and Y motors, either the connections or in software, switches the coordinate system between left hand and right hand. In a right hand coordinate system (which is what slicers assume), the +Y direction is rotated 90 degrees anticlockwise from the +X direction as seen from above.