Before moving to Los Angeles, the Dodgers were based in Brooklyn, New York.
The team had originated in the nineteenth century when, because of the dangers of horse-drawn trolleys and carriages, the pedestrians of Brooklyn called themselves “trolley dodgers.”
Because most of their working-class fans had to dodge traffic on their walk to the games, the Brooklyn baseball team named themselves the “Dodgers” in their honor.
When the team moved to L.A. in the 1950s, they took the name with them.