You seem to confuse "someone likes you" with "someone finds you attractive". Maybe someone smiles at you just because you seem like a nice person. I would even argue that this happens much more frequently than someone smiling at you because they find you attractive.
Well, this is aimed at straight dudes in any case, so in this mindset "girls" (!!!) only either are for sex or unimportant.