This can be due to excess moisture when the cakes are cooling down. Excess moisture could be from a particularly moist recipe. For example, cupcakes that have fresh fruit inside of them. Or it could be that the cupcakes haven't been baked at a high enough temperature or for long enough.