Why and how do people lose feelings in a relationship?

I have seen people breaking up due to one of the person in the relationship losing feelings for the other. I have never been in a relationship myself since I have always been afraid of such things. And I just want to what cause this to happen and if there is any way to revive the relationship if that ever happened.
Why and how do people lose feelings in a relationship?
Post Opinion