In the Greek language, "gall" and "myrrh" are the same word. Since myrrh was used as a narcotic to deaden pain, were the soldiers showing mercy to Jesus by offering Him myrrh? Probably not. More likely, it was because they didn't want Him to die too quickly. They wanted to lengthen His suffering.
Myrrh was a costly substance. Exodus 30 says it was used to anoint prophets, priests, and kings. Psalms 45 refers to it as a perfume. John 19 tells us it was used for embalming. At His birth, Jesus was given myrrh (Mat 2:11). Why? Because He is the Anointed One, because His Name is as ointment poured forth (Son_1:3), because He came to die.
Perhaps it was because He knew it was a drug to deaden the pain, Jesus refused to take it.