The rail industry, just like the aviation industry, has taken a safety first approach, with every accident examined and understood, with the lessons learned fed back into practice, maintenance, working processes etc. This is why aviation is very safest way of travelling and why no one has died on the railways in the past 10 years since the Greyrigg derailment.
In contrast, the road industry has done fuck all, which is why kids can get run down and killed on the pavement and drivers can claim "the sun was in my eyes" and get a £100 fine instead of a life driving ban and a jail sentence. It's ok to kill people with vehicles in the UK, it's just one of those things.