There is a huge advantage to surfacing search results directly in the document. You drop the friction to effectively zero, which means you're far more likely to search random phrases in a document when you never would have before.
I've read some research papers where I need to look up a word in like every sentence. It's hard to focus when I have to keep going to a separate tab/window.