I think that most domestic animals, in particular, dogs and cats are very intelligent at the time of getting lost. Many of them remember how to return home, also their owners don't care if they come back in a few hours and even they can leave then without a leash because they don't know that they won't leave. But there are others especially the smaller ones who aren't accustomed and if they are lost it's very difficult for them to know how to return.
I think that for humans to find somewhere is easier, we have many things to find out. I also think it is very good to find the way to the hotel if we are visiting a new city because it will be our stay for as long as we want to stay. The people who are lost the most are the children and an old people because they are the most innocent people. I say this because when I was little I got lost in a mall but they found me shortly. But there are people who are lost and can't get back especially aged people when they have the tragic alzheimer's disease.
In conclusion, I say that both animals and people have the ability to know how to go home when we get lost. Although humans have a small advantage. I think we are very similar.