This is a common belief thanks to terrible science comunication by journalists. I recommend the book The Truth About Animals: Stoned Sloths, Lovelorn Hippos, and Other Tales from the Wild Side of Wildlife by Lucy Cooke. It's a fascinating read and has a chapter dedicated to how we've misunderstood and misrepresented pandas and sloths in the media.