Why do we get brain freeze from ice cream?

Very cold treats chill nerves in the roof of your mouth, and your brain feels a quick “freeze” ache.