Python Package Index (PyPI) is a repository of software for the Python programming language. PyPI helps you find and install software developed and shared by the Python community.
Therefore, when you choose any package with the pycharm interpreter, the PyPI provides a link which is directly fetched and the required package file is downloaded from the server and installed.
Though, some packages file are already installed while installing pycharm.