Some librarians are also teachers and some teachers are also librarians. But a librarian isn’t necessarily a teacher, and they may not want to be, even though some of their duties include teaching.
An interesting article from 1979, Librarians as Teachers: The Study of an Organization Fiction by Pauline Wilson, which I discovered via this website and author.
Pauline Wilson. (1979). Librarians as Teachers: The Study of an Organization Fiction. The Library Quarterly: Information, Community, Policy, 49(2), 146–162. http://www.jstor.org/stable/4307078