In reality the air quality in Waverley station is an issue, and it was easier and cheaper to ban private motor vehicles/restrict taxis than to get the Scotrail, East Coast, Cross Country, TransPennine trains upgraded to run on electricity instead of diesel
I imagine it was just a wee bit cheaper to stick in a few barriers that it was to electrify thousands of miles of track and replace all the rolling stock.