The cocoon are put into the hot water to kills the worms inside the cocoons and also loosens the hold of the gum sericin on the filaments. If worms are not killed, they will secrete a fluid that will dissolve all the silk. This is called degumming.
Regards