Jesus describes teachers who love greetings in the marketplaces and to be called Rabbi. In an honor-conscious society, such public recognition could visibly confirm a person's rank and reputation.
The issue is not that greeting someone or using a respectful form of address was inherently wrong. Jesus targets the desire for public religious status.