The story
From street + car. Coined before the era of motorcars, the term emphasized a type of car on rails that were in the street (along with foot traffic, wagons, and carriages) rather than on a separate, dedicated railroad, as a railcar is.
Etymology from Wiktionary, CC BY-SA 4.0.