Another way to say "having a rest is for recovering" is "Resting allows recovery."