What does scalded milk do for a recipe?

Most likely the recipe has yeast in it. Keeping the ingredients warm helps the yeast work. For other things, it would help the milk to blend with the other ingredients if there is shortening in the mix the milk is added to.