A port has methods which are implemented in an export.
When you connect a port to an export and call a method, then the place where the method is executed is in the export.
See chapter 2 of the UVM users guide, especially section 2.3 for examples and more explanation.