Trains are engineered to absurdly high safety standards and every time there is a crash, it's widely publicized and an in-depth investigation is required along with suggestions for systemic changes to prevent repeat events, and the companies are required to pay large settlements:
http://www.npr.org/sections/thetwo-way/2016/10/27/499592760/...
At the same time, trains are vastly safer than personal cars. Yet when a driver kills someone, police can barely be bothered to attend the scene and rush to excuse the driver and let traffic flow again.
The safety standards on vehicles are such that billions are spent on engine development yet we tell people to watch out for the "blind spot" in that trucks mirror contraption. We're soon going to have autonomous driving AI yet trucks are roaming city streets that are unsafe by design and regularly claiming lifes. I don't see Volvo and MAN settling with anyone over that.
Most likely because trains essentially only travel in one dimension almost all the time, along a very well-defined path.
In car crashes, each case could be different and difficult to figure out what was the exact cause. Cars are becoming more complicated, as with farm equipment vs farmers or the "check engine light". Without transparency into the internals, I wouldn't know what broke or was it my fault or the car and I would probably have to rely on the honesty of the company to tell me or my family that.
For the same reason generally passengers don't sue airline companies when something goes wrong.
There is an unbelievable amount of energy and money that goes into safety ... so much so that flying would probably be 1/4 the cost if they simply didn't care that much about it, and so there's a degree of 'public goodwill' in the whole thing.
I think the 'moral' issues will come down to scenarios wherein the computer has to make a decision like: do I swerve and kill my 2 passengers, or hit the car in front of me head-on and kill it's 2 passengers: pick one of two outcomes. I think this is the moral dilemma that is already coming up.