The first time anybody on your instance searches for a separate lemmy community, your Lemmy instance reaches out for the other community and learns that it exists. After that point it shows up in searches and after one person subscribes it appears in your instance’s All feed.
I’m more certain about the first search part.