If you are being sympathetic to someone, you are being nice to them by showing that you understand their feelings.
It is often used in the context of a negative experience (e.g., “He was very kind and sympathetic when I told him my bad news”) and belongs to the same word family as the noun sympathy.
Sympathy and empathy overlap in meaning and can often be used as synonyms.