Step 1: Think about his need: The crofter's loneliness is the reason, not any hope of gain.
Step 2: Model answer: Living all by himself in a remote cottage, the crofter longed for human company. A visitor, even an unknown wanderer, brought a welcome change from the silence. So he received the stranger warmly, gave him a place to rest and food to eat, and was pleased to have someone to talk to.
Final Answer: His loneliness made him glad of any company.