Trains are great for large volumes to dedicated yards where the terrain allows the train to pass. Unfortunately there are lots of towns and cities where railroad access is poor or nonexistent. There are also deliveries of perishable goods from regional distribution centers to retail locations, like grocery stores, where they cannot afford the time to load, move through the 'backbone' of the rail system, to then unload at the next railyard, to then be loaded on to a truck for final distribution.
I can use my own commute as an analog; I drive around ten miles to work, going a half-mile east to the freeway, going a mile and a half north on that freeway to another one, about five miles east, then about three miles north. It takes about fifteen minutes if I hit all of the lights red. If I were to take mass transit I would have to wait for a bus to go half a mile WEST, then go north about six miles by bus, then take another bus east that goes the six or so miles but makes a detour to a senior center and sits for fifteen minutes, then walk a quarter mile up to the business. it would take me well over an hour even if I hit all of the connections perfectly. It makes more sense to drive.