You can transfer cargo from a parked ship by viewing the ship in the parked ships section of the command window, clicking the ship name and then using the relevant contextual options to transfer cargo.