Bringing pastry cream just to a boil activates the starch and sets the eggs, which is key to its thick, creamy texture.