It's largely a matter of self-confidence and poise; if you're too timid or fearful to interact with other people then you're not going to make friends and, perhaps, you'll be seen as a loner (and come to think of yourself as one as well). Try to project self-confidence and a bit of assertiveness and you'll make friends in no time.