A is invited to a party and he does not show up: he will not be a guest.
B rings the bell of the house (were the party is) as he wanted to
visit the owner (an old friend; B is from another city); by chance he joins the party,
therefore he is a guest, but was not actually invited.