Railways in Britain have enjoyed a good reputation in passenger terms for safety, based on the expansive network and the number of miles travelled.