Imagine weightlifting. If the coach does all the work for you, you will not get strong.
But the coach can help us by telling us how to use our time and efforts effectively.
With the brain, when we struggle before getting the answer, we're more likely to remember that answer.
Same for remembering something. We're more likely to remember something if you don't just ask google.
Cramming to learn is only temporary.
Best way of learning is through elaboration