The Melitians recognized the travelers situation. They acknowledged that they were in need of physical care. They realized they were capable of providing it. So they did. They took it upon themselves to care for the foreigners. They chose to be compassionate towards them.
Compassion begins with a choice. You have to recognize a need and then decide to act compassionately.
Compassion isn’t offered accidentally.
So when you’re faced with an opportunity to do good for a person in need put yourself in their shoes.
Do for them what you would want done for you.
Choose to be compassionate.