Early on, I was intensely focused on my academics and career, and always worried about getting distracted. And it was always surprising to me when a colleague or a fellow student expressed interest. Since I did not go to bars or other places where I could meet women, the only folks I attracted were my colleagues and folks who were also nerdy like me. Since my chosen profession is male dominated, there were few opportunities.
Later, as I switched gears to becoming fit, dressing better, and other personality improvements, I have occasionally attracted attention from causal interactions, but I am till today very surprised when someone finds me attractive. The last time was at a bar with a lady who I thought was completely out of my league made the first move, and it ended being a wonderful evening. I think people perhaps find my ability to carry a conversation & humor an attractive quality. Having discovered the magic of beautiful women a bit later in life, I am even more grateful.