How does altruism develops?

Altruism develops because human beings have an innate sense of compassion. That leads to acts of altruism that seem to sometimes defy logic.