The inflexibility of trains can be a feature in some cases. People like to live near subway and commuter rail stations partly because they know the route and service level are much less likely to abruptly change on them than a bus route would.
They’re also more immune to congestion. Back when I lived in Chicago and used public transit, one would strongly prefer the rail over buses when possible, except in cases where the bus was an express route.