Suppose you are working in a large or unfamiliar code base and you want to know where the code is that displays a particular dialog box or message box or something. Probably the most direct way of figuring this out is to look for the strings.
Say there is a message box that asks for user confirmation. "Are you sure you want to frobulate the ...