Empathy comes from people being able to relate anothers suffering to their own.
It is easy to imagine, that yeah it could have been you or a close loved one. . As a result, one might be more cautious, but also offer compassionate help from the heart. It makes you human to feel like that.