If used properly, tear gas is less dangerous than at least some of the alternatives. Imagine actual riots, not peaceful protestors.
The alternatives might be literally deafening sound, rubber bullets, tasers, batons, water cannons, and real guns; all of these can hurt people.