Why did Hanuman forget his powers?

As a child, Hanuman was blessed by the gods with enormous strength.
But he was still a child. He leapt through the forest, disturbing the sages at their work, again and again.
So the sages placed a gentle curse on him. He would forget his strength, until someone reminded him.
Years later, at the edge of the ocean, the wise bear Jambavan reminded him who he was. Hanuman remembered, and leapt to Lanka.
Source: Valmiki Ramayana. Episodes found only in later retellings are marked as such.