A state of knowledge is your mental state — the ideas and thoughts, your own interpretation and understanding of something go to waste by NOT writing it down in a persistent and later searcheable manner. Accumulating knowledge only to forget it and relearn it all from scratch is a betrayal to your purpose; you’ll keep on learning and forgetting the same things over and over again.
Letting knowledge accumulated after much hard work go to waste by forgetting is a sin.