What factor fundamentally dictates the habitat selection for sloths?

Answer

The presence of their preferred food trees.

A sloth's habitat is constrained not only by environmental factors but fundamentally by the necessity of consistently sourcing their specific, required foliage.

What factor fundamentally dictates the habitat selection for sloths?
dietanimalmammalherbivoreSloth