The ability to use knowledge does not come out of thin air. It is unlikely to find someone who knows how to program C++ extremely well, or solve problems in Quantum Field theory, but does not remember most of the language constructs or mathematical equations.
Continuous practice involves putting in the hours at practicing an art or a science, which by itself builds muscle memory about the language syntax/equations etc. It is unlikely that one can remember one but not the other.