Wiktionary
to what do i owe the pleasure
phr. (context formal English) A question asked to know the reason for being visited by the interlocutor.