I'm so used to this since I started driving 30+ years ago so I get pretty surpriced when I visit people in Germany and stand in an empty crossing with a redlight. Or have to stop at every single redlight thrugh the whole town.
I'm guessing the signals on railways are much more predictable.
Possibly, but it's mostly just a better system which works because railway lines are linear. On British railways at least (not sure about around the world), each signal informs the driver about the current state of the next two signals.
- Red (danger): absolutely do not enter the next piece of track (with serious consequences if breached),
- Single yellow (caution): the next signal is red,
- Double yellow (preliminary caution): the next signal is a single yellow,
- Green (clear): next signal is double yellow or green.
This way you can tell if you are catching up with the red and adjust speed accordingly (and I guess they would incorporate knowledge about the line, ie. if they know there is only one signal to the next station they wouldn't worry too much about a double orange).
I think the "smart motorway" variable speed limits are an attempt to implement this on the road. Unfortunately a large number of people think the temporary speed restrictions cause congestion and others think smart motorway simply means no hard shoulder.
You can't really treat current traffic signals like railways signals, but motorists would do well to learn to regulate their speed better and understand the concept of average speed.
They don't always work well; in my area some sensors seem to trigger too late, resulting in unnecessary braking, and others trigger too early and might encourage you to speed up for the intersection to avoid getting a yellow or even red just before you enter. Sometimes they give a green for the go-straight lane just when you're switching to the turn lane, which stays red even though there's no traffic..
One of my favorite solutions is simply turning the lights off altogether when there's not much traffic. They do that at quite a few intersections here.