dear sir, what does it mean thank you for having me?
"Thank you for entertaining me"
"Thank you for letting me visit your home"
"Thank you for the pleasant time I have spent with you and your family"
It is a general expression after visiting a person.