Routine may be boring, but at the same time it is calming at times. When those who suffer from psychological ailments are having an episode, the best way to get them back to health is to get them engaged in the everyday routine. This connects us again to everyday reality, and thus certainly helps. Take it from someone who has had several such episodes followed by reconnection.
As another explanation of the word routine, we can mention today's application of it in software: a routine describes how to perform a given task, and as such help to execute it more easily next time. Programming really does have a lot of routine, and it defines the functions of the programs. believe it or not, even Artificial Intelligence and its big brother AGI eventually record 'routines', although no single programmer will be able to figure out how the routine gets performed.