How do I learn to accept the only reason I got a girlfriend was cause I was lucky?

Like it didn’t occur because I was attractive or because I have desirable attributes

How do I learn to accept the only reason I got a girlfriend was cause I was lucky?
Post Opinion