purpose of a visit
Formal noun used when stating or asking why someone has come. Often appears in set phrases like 来意を告げる or 来意を尋ねる.
Please state the purpose of your visit at the reception desk.
Since it was an unexpected visit, I was first asked why I had come.