Scotland's life expectancy at birth is ~78 [1].
Glasdow's life expectancy at birth is ~74 [2].
You're likely confusing life expectancy with "healthy life expectancy", which is a different metric that measures the number of years a person can be expected to live in good health.
[1] https://www.nrscotland.gov.uk/statistics-and-data/statistics... [2] https://en.wikipedia.org/wiki/Glasgow_effect