It’s just from being exposed to oxygen. The very top dries out, creating a slight ‘skin’ to protect the rest of the pastry cream.