Tab is bound to select nearest enemy.
CTRL + Tab is bound to select nearest ally.
Double check you're not accidentally hitting tab with control held down.
Thanks for taking the time to reply, but no, that is not the case. For some pulls I never even use TAB targeting.