Actions such as cycling and swimming which require muscular memory are controlled by
Cerebellum
It's called procedural memory. More specifically, it's 'muscle memory' or 'motor learning' which is a type of procedural memory. Your brain's cerebellum, in particular, is very good at encoding sequences of muscle movements into long-term memory storage. Procedural memory is very robust.