It is a set phrase:
Tentu saja = of course (literally, 'just/only certain')
It is 'only certain' that I hate you = Of course I hate you
They are many set phrases like these across languages. Like 'terima kasih' literally means 'accept love' but as a set phrase means 'thank you'.