"Recoil" means to draw back or shrink from something, like a gun recoiling after being fired. The "re-" prefix indicates a backward or reverse movement.
The word "coil" itself can mean to wind something into a spiral or to shrink back from something. So, "recoil" literally means "to coil back".