That is how happiness is related to all the other goods. Or why you wanted to learn things. This shows you that happiness is something you seek for its own sake, whereas you seek all the other goods ultimately for the sake of happiness. Happiness is the only good of which this is true. It is the only good which we seek for its own sake, as Aristotle says.
Happiness is desirable in itself and never for the sake of something else.
But honor, pleasure, reason, and every virtue we choose indeed for themselves, but we choose them also for the sake of happiness, judging that by means of them we shall be happy. Happiness, on the other hand, no one chooses for the sake of these, nor, in general, for anything other than itself. Happiness, then, is something final and self-sufficient. And now, in the light of this definition of happiness, you can see why Aristotle says that the pursuit of happiness takes a whole lifetime, and that happiness is the quality of a whole human life. I am going to assume now that you have begun to understand what Aristotle means by happiness and why, in his view, its pursuit takes a whole lifetime.