Personal excitement for the material is one piece, but it’s not enough. The most important thing a teacher should do is help the students internalize *why* they’re learning the material. What they can do with it.
Baking shows don’t start off telling the history of the maillard reaction, they show you the delicious cake you’re going to make. Then you make the cake. Then (if it’s a class and not the food network) you learn the important details.
Teaching is storytelling. The main character is the student. What challenge will they overcome? How will they grow as a result? If the teacher makes them hungry to know the answer, then students will not just tolerate the information, they’ll seek it out, challenge it, and ask for more.