Luna understands this immediately when Harry approaches her because she has been keeping an eye on him throughout the year to that point. She trusts him because she knows that, underneath his mercenary explanations, he is ultimately motivated by real concern and warmth.