If they refine it themselves, they limit their ability to sell it, because different areas have different requirements.
For instance the oil refined into unleaded gasoline for use in Texas cannot also be sold in California because they have different requirements in the two states. So if Canada refines the oil their limit their market.
Selling oil is far far more common than selling refined products when you are talking about international sales.