The suffix "-er" is used to indicate a person who performs a specific action or role related to the root word. In the examples you've provided:
- Teacher: a person who teaches.
- Preacher: a person who preaches.
- Dancer: a person who dances.
So, in general, the suffix "-er" conveys the meaning of "one who does" the action of the verb it is attached to.