Inflammation is one of the causes of muscle soreness. Cold therapy reduces the inflammation.

There are a lot of articles on the net about the treatment of muscle soreness. I know with me and my knee....in college, I iced before and after practices/matches....and it made a difference.

http://darkwing.uoregon.edu/~iishp/Cooley.html