Why do girls suddenly notice me?

Basically I would say I'm average looking, and always got a little attention from girls. This year girls that I once thought were out of my league suddenly stop and wave or talk to me, ignoring friends I am with even if they know them too. Girls that once ignored me give me smiles. The only thing I changed really was not caring what others think of me, basically got more confident. Could just acting more confident draw attention from girls?
Why do girls suddenly notice me?
Post Opinion