Islam is more than just worshiping Allāh, It demands love, care and respect for Allah's creation too.
And when we do so, they love and respect us back. She just kissed the Cheek of Imaam and said Thankyou in her way for not pushing her away while he Leads the Holy Pray.