There is compassion that feeds the ego, and there is compassion that makes you humble.
Compassion that feeds the ego is a sense of pity for the other.
Compassion that makes one humble is born from a deep understanding of the order of things: when you understand that your neighbor is suffering so that you may be privileged to help him, then you truly become humble.