Why do shrimp turn pink when you cook them?

Just making some yummy shrimp tonight and was curious.
12 answers 12