The sugar in cake is what makes it moist as it attracts water and holds onto it. This is why you need to make sure to use the proper amount of sugar when baking a cake so that it does not turn out dry.