When you want to teach others you tell them the information you have.
Brain assumes that any information you’ve told to another person must be pretty important and tries to keep it longer.
When you want to teach others you keep the information longer.