Egg yolk is added to German chocolate frosting for its ability to help bind liquids with fat. This contributes to the overall richness and custard-like texture.