This video says about itself:
How Sloths Went From the Seas to the Trees
28 November 2018
The story of sloths is one of astounding ecological variability, with some foraging in the seas, others living underground, and others still hiding from predators in towering cliffs. So why are their only living relatives in the trees?