Public transport is a public good. A good is a public good if the good is non-excludable and non-rivalry. Non-excludable means that no one could be refused from consuming the good. Since everyone has access to public transportation, therefore public transportation is non-excludable.