Not everyone does. Some people do not think that they are worthy of love, and thus are attracted to those who reject them. If you have this problem, you should seek counseling so that you can find the happiness you deserve.
We all want what we cannot have. It's as simple as that. Everyone likes to make things complicated instead of taking the easy route and leaving that person alone.