Notice how you can just attack without directing? this game, for those who do not know, has an auto aim function.
this function allows you to Target the nearest enemy.
Note that the auto aim will continue to target the nearest enemy, even if it means switching enemies.
Bosses that spawn mobs will cause your auto aim function to not target the boss, so be very careful when your are a ranged player.