When you hit cold water, your body perceives it as a threat. This triggers a brief activation of your sympathetic nervous system (fight-or-flight).
Your heart rate spikes, and breathing quickens as your body prepares to react.
But then, something interesting happens. Your body realizes it needs to conserve heat and switches gears.