It's all based on the friction between the vehicle and the surface, in road vehicles that's typically asphalt and rubber and stopping distances are relatively short because of reduced mass. In trains the materials are steel and slightly harder steel and stopping distances are much larger, especially when the rails are wet.
A loaded freight train running 55 Mph will take more than a mile to come to a full stop. A passenger train doing 100 Mph takes 750 meters to stop with emergency brakes applied. This will lead to lots of people being wounded due the fact that trains don't normally have seatbelts, unsecured overhead luggage and people standing if the train is relatively full.
Trains also can't evade, they're tied to the rails.
Tourbus operators (not the same as public transport) are responsible for a large number of the road traffic accidents involving buses, public transport involving buses is involved in accidents at a much lower rate. The reasons are: tourbuses tend to go faster, drive much longer distances (exhaustion), drive routes that are less safe to begin with and so on.
The way the rail industry deals with a capacity problem on a line is not to send more trains with a decreased train-to-train spacing but simply to send longer trains.
You can't really make longer buses beyond a certain maximum length due to the fact that the minimum turning radius of roads is a very small fraction of the minimum turning radius of a train.
We allow lorries to run at 56mph less than a meter nose-to-tail, with a human at the controls. Yet we require signalling blocks that put miles of clear air between two successive trains even when automatically operated. We could make rail vastly more economic overnight if we simply allowed it to operate at the same safety levels that we accept for road traffic.