Weep Not (As Others)

Luke records that the first act of compassion Jesus did was to simply speak the words, “Weep not.” Jesus had yet to do anything that would relieve the anguish of the woman’s situation but His words are recorded as words of compassion.
How can this be?