It is a polite way to express gratitude to a woman, especially an older woman or someone you want to show respect to.