Roasting caramelizes the sugars in the pumpkin, enhancing the flavor. Boiling, on the other hand, can make it too watery.