I used to say that they all buy from the same refineries. But now I question that view. I always avoid scruffy stations that look like their tanks might be rusty or contain water/contaminates.
Now worry that cheap gas might be because additives are being deleted to lower cost. Check this out.
http://www.toptiergas.com/retailers.html