Connecting London to Brookwood Cemetery was The London Necropolis Railway, transporting mourners and their recently deceased to the burial grounds outside of the city.
London in the Victorian era was faced with a massive shortage of space within the city limits for the burial of bodies and an overcrowding of existing cemeteries, the areas outside of the city began to create sprawling cemeteries to house the dead. The Necropolis Railway carried passengers, both living and dead, to these new eternal resting grounds from 1854 until it was damaged in an air raid in 1941. At its peak, it carried more than 2,000 bodies annually.
I believe that you can still visit the entranceway to the London Waterloo station, although the “Necropolis” signage has since been removed or covered.