Learning new powers and abilities is frequently a main goal of character development in games. Some training can be done by studying tomes of knowledge or practising on one's own, but many require a teacher.
Seeking a suitably skilled teacher can be a quest in itself. And if the only person who can teach you the powerful fire spell you desperately want to learn is a cantankerous old wizard who hates company, all the more fun!
Transcript
Luke: Yoda, I can't sleep. I keep thinking about what Vader did to Obi-Wan.
Yoda: Try counting banthas, you should.
Luke: I don't think I'll be ready to face her again.
Yoda: Complete, your training is.
Luke: Really?
Yoda: But for one more thing.
Luke: Is that one thing how to defeat Vader?
Luke: Without losing another limb?
Yoda: A new Force power I must teach you. Force Transcend.
Luke: That's Disintegrate! I could use that on Vader!
Yoda: Sigh.
Luke: Well... if I wanted to go down the Dark Path, that is.
Yoda: Good. Good.
Luke: So. How do you do this Transcend thing anyway?
Yoda: Like this!
Yoda: Hnnnggghh! {small text}
{Yoda vanishes}
{Luke is astonished}
Yoda's voice: Only once can you do it, though. {small text}