I think you're making a different argument, where trains attract a more well-heeled commuter. Which is why many cities have brought back LRT as part of a redevelopment plan.
But _at the time_, buses were very competitive with trams; there wasn’t all that much other road traffic, so they weren’t really slower (and they could use the tram lines, while they existed, as a right of way), the trams of the time were non-articulated, so buses had similar or higher capacity, and they were more flexible. It’s easy to see how it happened, and it only became apparent that there was a problem when it was far too late to reverse.
There are really two problems with buses vs trams; buses are slow when there is lots of other traffic, and, _with modern articulated trams_, higher total capacities are achievable (one of Dublin’s modern tramlines has trams that take over 400 people with a frequency of under 3 minutes between trams at peak, which is a level of capacity that you just can’t really get with buses). Neither of these were factors when the first-generation trams died.
Very few tram systems worldwide actually survived from the early 20th century to today; while there are lots of trams today, most are second-generation systems put in from the 80s on.