Why are we able to do something like `learn.fit_one_cycle()`

I was looking at Learner's source code, fit_one_cycle is not a method for learner class but a function on its own - why are we able to call it from the Learner object like learn.fit_one_cycle()?

(this is fastai V1 I’m referring to)