She was going to quit the X-Men to avoid being tempted to mess around with him. It was a bit egregious and comical to have her say she can't stop herself from jumping his bones (it was a different time), but still, the attraction was there. This didn't come from nowhere and was long overdue.