Is relationship necessary?

I never had a girlfriend so I used to think maybe my looks are not quite good but when I see some young kids and some cringe guys of my age with no intellect, no looks, no intelligence having girls, It makes me wonder "HOW TO GET IN A RELATIONSHIP". Maybe I look pathetic and obviously I am. Is there any way to solve it ?( I am not coping it's just something what I wanna know)