why did I get nervous when I saw him?

I just ran into a guy I used to sleep with. I haven't seen him in 2 years. And my heart started racing, my tummy started flipping and I got so nervous and I don't know why. I definitely had feelings for him but that was 3 years ago! Can anyone help me figure out why I got nervous?