Has to be both. A random gas might interact with the oil being pumped. Why don't they just use compressed air? There must be a reason why CO2 is desirable for that application.
It's the opposite actually; CO2 interacts with petroleum in controllable ways via pressure, so engineers can change the properties of the oil and end up extracting more oil more quickly.