Endo Found Everywhere?

Okay, I know they say endometriosis has been found in every part of the body but my question is HOW was it found?

Was it just like….”my knee hurts, let’s do surgery” and they go in and find Endo?

Just curious if anyone knows before I deep dive down a rabbit hole.