The term "innkeeper" is slightly incorrect here because that implies people are paying for the service whereas the Gemora is discussing the oppisite, Yerushlayim, when the Beis HaMikdush was standing where it was forbidden to accept rent from pilgrims. Not even for the beds slept on. Therefore in order that unpaying guests don't end up as total freeloaders, they gave the hides of animals they sacrificed and other such items to their hosts.
The Gemorah isn't saying it as a strict halachic obligation but rather as the correct mode of practice.
The general concept of not being a freeloader (guest) certainly is brought down in Jewish law and thought . The Gemorah (Chulin 44B) says that Rav Elazor would not accept gifts or meal invitations because he was not interested in accepting free largesse. Rav Zeira would not accept gifts but would accept meal invitations because of the assumption the person inviting him was doing for his own benefit (he wasn't looking for the invitation) Based on that Gemora the Rambam (Zechiyah uMattanah 12:17) and the mechaber (Chosen Mishpat 249:5) both say the righteous practice is not to accept anything given as a free present.