There were real reasons that you were attracted to somebody originally. The brain doesn't pick willy-nilly. Unless you part ways hating each other for some reason, that mechanism could get triggered again. You can literally fall in love again.
Helen FisherMen have a psychological need to show off their courage and strength. When he sees you talking to another guy, that instinct kicks in and he jumps to protect you and prove he's worthy of your love.
Helen Fisher