I used to take the bus every day in Prague (Czech Republic) for about 6 years. It was almost always on schedule in both the morning and afternoon.
I don't know anywhere near enough to argue why in general. But not having drivers sell tickets, and route planning certainly help. For example, shorter routes are guaranteed to reduce variance. But I'm not sure what the downsides are.