If we lived on a planet where every person was a rational, level-headed adult, lectures and books would be enough of an education. Sadly, most of the people are irrational and emotional; if you want to steer them towards better life decisions, for their sake as well as society's, shame is a very good tool.