Why are box braids dipped in hot water?

daisy

Sorry if this is a stupid question but I see videos of people getting box braids where artificial hair is added and at the and they always dip the ends in hot water and I just wanted to know why.