Empathy is understanding, sympathy is recognition.
If I stub my toe you don't have to feel that pain to empathize it, you have to understand what it feels like to suddenly be in pain. Sympathy in that situation would only require recognizing and pitying someone who is in pain, without necessarily understanding it.