I’ve lived right up against a railway before. Really not that bad, plus you’re more likely to be near a station which is excellent.
Agree on the highway/runway examples, though. Turns out the problem is usually burning shit nearby. (And rubber tyres)