I think cats have the feline equivalent of the old hobo code, which would tell following wanderers where it was safe to ask for food, shelter, etc., and what places were off-limits.