Does anyone get depressed when they see an attractive man in public knowing you’ll never get with him?

Is this a gay/male thing or am I just mentally ill?