what is someone/something doing...? - definition and synonyms

phrase spoken
  1. used for asking why someone or something is in a particular place because you think they should not be there

    That’s my diary, but what’s it doing on your desk?

    What are you doing wandering about the school at this time of night?

See also main entry: do