Basically you've got:
Price of oil
Tax
Supply
Demand
Competition.
The price of a barrel of oil being just one of these factors - it is the one that is most consistent across each petrol station (and tax). So Price of barrels increase = price at all stations increase. Whereas demand and competition (and perhaps supply?) is what creates differences in price between each petrol station.