TB bacteria are released into the air when someone with the active form of TB coughts or sneezes, The bacteria spread easily, especially in crowded places with poor airflow. The longer you breathe these germs, the more likely you are to become infected.
Click on the link below for an illustration about the spread of TB
http://www.cdc.gov/tb/publications/Posters/images/StopTB.pdf