Jesus was surprised that, after having cured ten lepers, only one of them returned to give thanks, and that one was a Samaritan. The others, perhaps out of enthusiasm, the joy of having been healed, which meant the leprosy disappearing and being able to return to the normal life of the town, forgot who had healed them.
It can be understood, but not justified. To the extent that Jesus asks in surprise where the nine were. And it was a healing of something repugnant in people's sight, contagious and with disastrous physical consequences for the person. There was no medical cure for that. And one had to live in places apart from the towns. And when they went along traveled roads, they had to ring a little bell, so that people would move aside.
The very fact that Jesus approached them, touched their heads and shoulders, pronounced the blessing full of healing power, and stayed with them until the healing began and sent them where they could register the cure, was a unique gesture.
Giving thanks is a noble gesture of the human being. It implies recognizing that alone I cannot, that I need others. That I am not self-sufficient and that the other helps me solve a problem.
It is recognizing that the other person gave of their time, of their goods, of their position or responsibility, of their own being something valuable that helped me face and come out victorious from a difficulty; to leave behind an anguish, to solve a lack, to be better.
It implies recognizing that there is a debt with the other, and that even if they ask nothing in return, there is the moral obligation to repay with something born from my soul, from my grateful heart. And that is saying with affection and consideration the word thank you!
Saying thank you is at bottom giving a blessing, it is telling them that I love them, that I esteem them greatly, that I will not forget the favor, that I wish them the best. That if I can I will do something similar for them. It is returning with a spiritual good the favor they have done me. It is making the other feel good for what they have done.
We must always be grateful, with God in the first place, and with the people who have helped us, and never forget the favor received. And say the word thank you with enthusiasm, with sincerity, with nobility, assuring that we will always be willing to return good with good.
Being grateful implies having a good heart, which recognizes the good received. May we be grateful like the Samaritan who returned to say thank you to Jesus.