This would be worthwhile to explore in therapy, if you can. There could be so many reasons why you stop being attracted to people you care about -- you're choosing the wrong people to begin with, you don't know what you're truly attracted to, you are wired to be sexually explorative even as you want love, and so on.