Let's say that you can run 5 miles. If my friend James can run 10 miles, I could say "You can run 5 miles, but James has you beat. He can run 10 miles." In other words, James can do better than you can. I could just as easily say "You can run 5 miles, but James has that beat." In this case, "that" is referring to the number of miles you can run.
In the context of this passage, bears can sleep through the winter (a few months), but tenrecs have that beat. They can sleep for nine months.