A smile is nice. Don't read anymore into it than what it simply is ... a smile. Many people do it while passing. I do it often and don't mean anything by it.
Of course, I never smile at hideous or ugly people.
From a girl, I'd take it as a nice gesture or compliment that you're not hideous. Nothing more.