Autotargeting is the feature that causes your ship to automatically lock everything that locks it. This includes NPC's and Players.
One of the first things every pilot should do is turn this feature off.
The reason for this is because it will cause you to lock things you don't want to, can potentially get you concorded in highsec, and will make you look like a noob in every fleet you join.
You will look pretty bad if you join a fleet and shoot the friendly logistics that is repping you.
To turn this feature off simply set "Auto Target Back" to "0 Targets"