Trains don't operate from door to door. The last mile problem persist, unless you travel between railway connected city centres. Not everyone lives anywhere near a railway station.
(I live in Europe which has relatively good railway network, still I prefer my Tesla as transport method.)