I've never liked that phrase, even though I recognise it's true most of the time in the public school system. But the idea behind it, that teaching is a last resort job for losers who can't do anything else, is very damaging to society, IMO.
It's a phrase true mostly in the public school system. Doesn't hold so much for universities or other educational institutions.