Because it declines in accusative like nouns and adjectives.
- Mi sxatas kafon (I like coffee)
- Vi amas lin (You love him)
- Vi ne scias kion diri (You don't know what to say).
Diri is not declined because (I think) it is in infinitive (to say).
You have to get used to declinations that not happen in english.
Hope that helps.