Imports for Extensions
An imported extension XAR lacks its dependencies, yet the import registers it as installed when a configured repository knows it.
Explanation
Installing an extension is the job of the Extension Manager, which resolves the dependencies that importing its XAR file leaves out.
Some extensions are nevertheless packaged as XAR files. When importing XWiki Pages, the import process reads the package.xml file contained in the archive. If that file carries an extensionId value, the Importer looks the Extension up in the XWiki Extension Repositories configured in xwiki.properties under the extension.repositories keys.

If the Extension is found in one of those repositories, the Importer registers it as installed on the instance, and it appears in the Extension Manager under "Installed extensions".
FAQ
Why can importing an extension's Pages break the extension?
Because the Pages arrive without the extension's dependencies, and importing them on top of a different version of the same extension can break it through API incompatibilities.