The fat in butter acts as a stabilizer, helping frosting to thicken and hold its shape.