Public transportation is not a public good. It is excludable, because the transit company won't give you a ride if you don't pay the fare. It's also rival because public transportation has limits. At busy times, a train or bus might have to leave passengers behind because of lack of space.