Actually most of their gains are from optimizing operating costs. Much of the price increase is due to the OPEC setting higher prices. To say it's exclusively the oil companies is inaccurate.
Not to mention, counting inflation our prices have nowhere hit the highs during the oil shock of the 70s.