Taxes played a big part in killing the gas station attendant.
There used to be some actual money for the station owner in selling gas but now the profit margin is almost non existent so gas is just the reason for people to stop. The crap inside the building is where the profit is.
Mid-late 60’s in NYC, gasoline paid the nut. (rent and utilities) The money came from the bays.