ref
From rare + -ly.
rarely (adv.)
1520s, "thinly, scantily," from rare (adj.1) + -ly (2). From 1550s as "seldom, not often;" the sense of "finely, excellently" is by 1580s.