Chapter 2 - Verse 62

ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते ।
सङ्गात्सञ्जायते कामः कामात्क्रोधोऽभिजायते ॥ ६२ ॥

dhyāyato viṣayānpuṃsaḥ saṅgasteṣūpajāyate .
saṅgātsañjāyate kāmaḥ kāmātkrodho’bhijāyate .. 62 ..


When a man thinks of objects, attachment for them arises. From attachment arises desire; from desire arises wrath.
Read the commentary

Attachment for objects arises when a man thinks of them specifically*—Wrath arises when desire is frustrated by some cause or other.

i.e., thinks of their beauty etc.