The skin is forming because of proteins, just like if you cook milk or anything else that's got a coagulant protein in it.
I hate using the word coagulant.