In this item, four words have been given, out of which three are alike

In this item, four words have been given, out of which three are alike in some manner and the fourth one is different. Choose the odd one out.

Friendship
Intimacy
Attachment
Enmity
This question was previously asked in
UPSC CAPF – 2019
The given words are Friendship, Intimacy, Attachment, and Enmity.
Friendship: A relationship between friends.
Intimacy: Close familiarity or friendship.
Attachment: A feeling of fondness or loyalty for a person or place.
Enmity: The state or feeling of being actively opposed or hostile to someone or something.
Friendship, Intimacy, and Attachment all describe positive emotional connections or bonds between people. Enmity, however, describes a state of hostility or strong dislike, which is the opposite of the feelings represented by the other three words. Therefore, Enmity is the odd one out.
Odd one out questions require identifying a common characteristic or relationship shared by three items and finding the one item that does not share that characteristic or is opposite in nature. Understanding the meaning of the words is essential.
These questions test vocabulary and the ability to identify semantic relationships between words. Categories can be based on type, function, properties, antonyms/synonyms, etc.