Why is context important in translation?

Is the phrase you’re so smart a compliment or a sarcastic remark?

The answer really depends on the context of the conversation you are having and with whom.  If it was still unclear, you would probably ask the person to explain what they actually meant.