The irony is that historically, a lot of rail was built for settlements that, while they may have existed, did not support the cost of rail, and this has driven a lot of development.
And this is both how it ought to work and means that the UK has a lot of existing rail that could help solve this problem if the government would just commit to streamline planning processes and to increasing routes and frequency to stations where there is a potential for density increases at lower cost.