Even if you dont refine locally, they still need to transport and store. Nobody anywhere on earth is pumping directly from the ground to a waiting ship across thousands of kms.
As MiroslavPokorny notes though, there are still storage tanks at either end to ensure there's always tanks holding a head of crude from wells to feed into the pipes, and tanks at the port end to buffer incoming when no ships are in port.