There is a reason to hate "trains" when it's fucking Caltrain with at-grade crossings and retarded federal rules about fucking horns all night long. Half the fucking Peninsula is unusable for sleeping as it is.
The horns are used to try to get people to not get killed.
There are remarkably few good ways out for humans in our society, so this kind of spectacle is often what they end up resorting to.