Ultimately, from Proto-Indo-European *h₁reh₁- (“to separate”), cognate with Latin rete (“net”), Latin rarus, and other roots with the general meaning "bind, twist."
rėtis ?