I've always felt that Luna is one of those characters that is a perfect catalyst. One that makes things happen without really trying. Plus she such a perfect counter to Hermione, and just as intelligent.
To me she's the balance Harry needs, if you include Hermione in the mix.
'-)