Earlier this month, a shelter dog named Hank from Memphis traveled 11 miles over two days to return to his foster home after being moved to longer-term rescue care. The white shepherd had only been with his foster mom, Rachel Kauffman, for about six days before he was moved to a home across town. Even though he traveled to his new home by car and should not have instinctively known the route to Kauffman's house, Hank found his way back to her.

This is not the first time an animal has shown this amazing skill. In 2013, a house cat named Holly traveled 200 miles to return to her West Palm Beach home after being lost while traveling with her owners to Daytona Beach two months earlier. Some questioned whether or not the cat that showed up on the Richter's doorstep was, in fact, their beloved cat Holly. (I mean, really, 200 miles?) But Holly had an implanted microchip; it was definitely the same cat.

Sure, these are extreme cases of lost pets finding their way home, but it also brings up questions about the different ways that animals — especially house pets like cats and dogs — find their way around.

SWEET PHOTOS: 11 animals that mate for life

It probably comes as no surprise that dogs rely heavily on their noses. When the wind is right, 11 miles isn't really that far for a dog with a good sniffer to travel. But beyond the direct line of scent, dogs also use overlapping circles of scent to plot a course. Maybe there's the smell of a familiar person or animal in the air, or a trash can or fire hydrant that's on his walking route. Any of these scents can help dogs zero in on the scent they are looking for — scents of home.

Cats, on the other hand, may use magnetic fields just like birds do to find their way north and south. In Holly's case, scientists speculate that she took a good guess when she got to the ocean and — possibly using her internal compass — turned right to head south to West Palm Beach. Then all she had to do was follow the ocean and keep on walking.

The pet's overall temperament plays a role in navigation too, Time points out. A dog that travels for miles and miles to find his way back home is likely trying to return to his owner. The dog-human connection, after all, is a powerful one. However, a cat that travels the same distance is likely just trying to get back to familiar turf.

Researchers caution that we shouldn't give animals too much credit. No matter how well they navigate, for every pet that makes the amazing trek back home, there are countless others that remain lost.

As for Hank, it looks like his long walk may pay off in the form of a forever home. Kauffman, who already has two dogs and is fostering another, had no intention of adopting the young shepherd. But as she told WFTV news, “When it’s meant to be, it’s meant to be.” From her Instagram account:

HANK IS HOME

A photo posted by Rachel Kauffman (@kauff_drop) on