Context-dependent memory
Context-dependent memory is the way you recall things better when you are in the same place or setting where you first learned them. Your brain ties what you study to the room, sounds, and smells around you, and those cues help bring the memory back.
When you learn something, your brain saves more than just the facts. It also saves bits of where you were: the room, the noise, even the time of day. Later, being back in that same setting acts like a hint and helps the memory come back faster.
There is a famous study with scuba divers. They learned word lists either underwater or on land. They remembered the words best when they were tested in the same place they learned them. The setting itself was part of the memory.
You can use this two ways. Study in a few different spots so your memory is not tied to one room. Or, before a big test, study in a place that feels like the exam room so the setting works in your favor on the day.
Mia always studied biology at the same desk with her coffee. In the quiet exam hall, some terms felt out of reach. After that, she started studying in a few different places, including the library, so the words would come back anywhere.