In martial arts, it is called "no-mindedness", and specifically in Japanese MA, it is 'mushin'. In sports, it can be called "flow" or "in the zone".
Although muscles have no memory, the term "muscle memory" stuck. "Motor memory" may be a better term.
A beginner needs to drill enough to get the...