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.