Genuine question. How ?
A train is something you can see coming from a mile away. It doesn't blindside you. 'Deer in headlights' events occur, but it not like the person couldn't have foreseen it coming. It's like blaming parkour deaths on walls.
A pedestrian crossing a street can be 'struck' by a car, because a car can actually come out of nowhere. There is a reason that most car deaths in cities occur on a 'unchecked turn right on red'. It is an accident that occurs because of occlusion.
Trams have a risk profile that borrows some of the risks of cars. But, grade separated rail requires active fault form the pedestrian/cyclist to be in fatal accident.