Best Friend

My best friend & I used to hook up, we've had sex once... A really long time ago when I first met him. He pretty much knows all my guy problems & I know all his girl problems. Yesterday we hung out after not seeing him for a while and well we hooked up & had sex! I feel so confused because he's the one that initiated the touching and grabbing. 
What did I do!? Im so confused. Idk what to think.